How can I plot negative/zero error in logarithmic scale?

I was trying to plot x vs. y where y is in logarithmic scale. Now I want to plot also the y-error on the same scale. Now the problem I facing when the data point is same with the error. For example I am plotting count vs. time. The usual error is sqrt(count). Now if the count is 1, so error is 1 too. Now I want to plot in semilog scale. Lower limit of the error is 0. So simply matlab erasing that errorbar (not the point). Now I want to have such kind of plot that lower limit of the errorbar just touches the xaxis..... Is it possible on matlab? I want to have this badly....

답변 (2개)

Walter Roberson
Walter Roberson 2012년 10월 1일

0 개 추천

Maybe you should be using plotyy() with one of the plots in log scale and the other one not in log scale ?
Kaushik Sen
Kaushik Sen 2012년 10월 1일
편집: Kaushik Sen 2012년 10월 1일

0 개 추천

Thanks... I am using errorbar(x,y,error_y);set(gca,'yscale','log'); one point is 1. And the error of the corresponding point is also 1. that means error is 2 to 0. I expect your answer.

카테고리

도움말 센터File Exchange에서 Errorbars에 대해 자세히 알아보기

태그

질문:

2012년 10월 1일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by