필터 지우기
필터 지우기

Changing the vertical errorbar tee

조회 수: 1 (최근 30일)
Niles Martinsen
Niles Martinsen 2012년 6월 29일
Hi
I have the following example
x=1:1e1;
y=x;
e=sqrt(y);
figure(1)
errorbar(x, y, e, e)
What I want is to change the size of the horizontal little line above and below each vertical errorbar (the "tee"). In "errorbar.m" I have set tee=0 as a test, but it still does display the little horizontal line.
Am I doing something wrong here, since MatLAB doesn't respond?
Best, Niles.

답변 (1개)

the cyclist
the cyclist 2012년 6월 29일
I suggest you use the following utility from the File Exchange. It is highly rated, and has worked perfectly for me.
  댓글 수: 2
Niles Martinsen
Niles Martinsen 2012년 6월 30일
Thanks for the suggestion. I can't make it work with a log-log scale however:
x=1e-3:1e-4:1;
y=x;
e=sqrt(y);
figure(1)
h=errorbar(x, y, e);
ylim([1e-5 1e2])
set(gca,'xscale','log','yscale','log')
errorbar_tick(h, 20)
By using it like this I thought that all data points would get the same tee-width, regardless of their position?
Best, Niles.
the cyclist
the cyclist 2012년 7월 3일
I've never tried using on a log-log plot.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Errorbars에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by