필터 지우기
필터 지우기

Errorbar plot has no connecting lines

조회 수: 15 (최근 30일)
fireattack
fireattack 2016년 9월 19일
편집: fireattack 2016년 9월 23일
I just used the example from doc,
x = 1:10:100;
y = [20 30 45 40 60 65 80 75 95 90];
err = 8*ones(size(y));
errorbar(x,y,err)
However, the figure has no connecting lines, unlike the documentation:
  댓글 수: 1
Star Strider
Star Strider 2016년 9월 19일
What version of the documentation did you use? The current online documentation is for R2016b, and that code works correctly for me (connects the centres of the bars with a line, and plotting the error bars) in R2016b.
Type:
doc errorbar
in your Command Window to get the documentation for your version. There could be version differences.

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

채택된 답변

fireattack
fireattack 2016년 9월 23일
It is fixed in R2016b.

추가 답변 (1개)

mbonus
mbonus 2016년 9월 19일
errorbar(x,y,err,'-b')
  댓글 수: 4
mbonus
mbonus 2016년 9월 19일
편집: mbonus 2016년 9월 19일
Or after you plot it you could try
set(gca,'linestyle','--')
fireattack
fireattack 2016년 9월 23일
편집: fireattack 2016년 9월 23일
thanks for the following up. I can't reproduce my original problem on another computer, so I guess something was wrong with my setup. Luckily after updating my Matlab to 2016b it fixed itself.

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

카테고리

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