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

1 visualizzazione (ultimi 30 giorni)
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 Commenti
dpb
dpb il 16 Set 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 il 16 Set 2015
Modificato: the cyclist il 16 Set 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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by