Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Laurence hutton-smith
Laurence hutton-smith le 16 Sep 2015
Modifié(e) : the cyclist le 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 commentaires
dpb
dpb le 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 le 16 Sep 2015
Modifié(e) : the cyclist le 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Data Distribution Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by