How do you control the length/width of error bar end points?

1 次查看(过去 30 天)
The below image was generated using 'errorbar(x,y,y_SD'.
As you see the size of the end of the error bars varies seemingly arbitrarily, I would love the end of these error bars to be of uniform size, would anyone be able to show me how to do that?
Many thanks
  2 个评论
dpb
dpb 2015-9-16
I don't believe there's a specific property; I suspect it's a fignewton of the resolution causing the apparent discrepancy rather than real. If you print the figure do they then look alike? If so, that's indicative.
You can try changing the 'renderer' property and see that has any effect or 'linewidth', etc., but likely the latter won't really cure it on screen.
You can dig down into the objects created by returning the handles and checking on the properties but I think you'll find everything you can see will be the same.
Oh, which release? I'm guessing this is HG2 w/ recent release?
the cyclist
the cyclist 2015-9-16
编辑:the cyclist 2015-9-16
Can you share a distilled version of the code that created this figure? To my knowledge, there is no native MATLAB code that will create a bar chart with errorbars, so part of the issue may be related to how this was cobbled together.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by