Errorbars do not have horizontal lines
조회 수: 7 (최근 30일)
이전 댓글 표시
When I plot the errorbars on my function, I am only getting the vertical lines and the circle at the center. How do I get the horizontal lines at the top and bottom as well??
댓글 수: 2
Geoff Hayes
2014년 6월 11일
Eric - you may need to provide more information. What is the code you are using to plot your errorbars? (Presumably the errorbar function.) Perhaps attach an image of what you see, and one of what you would like to see.
Scott Webster
2015년 2월 6일
This topic could be related to your issue:
채택된 답변
Star Strider
2014년 6월 11일
We need to see the code you use to create your plot. I couldn’t find anything in Errorbarseries Properties that seem to affect the way the error bar horizontal lines are displayed. There seems to be no way to turn them on or off or scale them (not that I’d want to, since I like them the way they are).
They might be there but too small for you to see if your x-data are closely spaced or other data scaling problems are interfering with them. Click on the magnifying glass symbol in the figure window and see if enlarging the figure reveals them. (I recently needed to do this to be sure the arrowheads in a ‘quiver’ plot were actually there.)
Note to MathWorks — It would be nice to be able to display horizontal error bars as well.
댓글 수: 3
Star Strider
2014년 6월 12일
My pleasure!
I agree. If the errors are small, the actual data or regression line can get lost. I like errorbar and use it often, but an alternative I sometimes use is to plot x and the upper error limits, and x and the lower error limits. That gets across the idea and avoids some of the visual distraction of closely-spaced error bars.
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Errorbars에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!