Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Laurence hutton-smith
Laurence hutton-smith am 16 Sep. 2015
Bearbeitet: the cyclist am 16 Sep. 2015
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 Kommentare
dpb
dpb am 16 Sep. 2015
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 am 16 Sep. 2015
Bearbeitet: the cyclist am 16 Sep. 2015
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by