Effacer les filtres
Effacer les filtres

How do I control errorbar line appearance independently of the markers?

1 vue (au cours des 30 derniers jours)
How do I control the appearance of errorbars?
I want to change the line style of the errorbars independently of the markers
Thanks,
Ziv
  4 commentaires
Ziv Kassner
Ziv Kassner le 18 Mar 2019
Great! thank you!
KALYAN ACHARJYA
KALYAN ACHARJYA le 18 Mar 2019
Modifié(e) : KALYAN ACHARJYA le 18 Mar 2019
Please check the answer

Connectez-vous pour commenter.

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 18 Mar 2019
Modifié(e) : KALYAN ACHARJYA le 18 Mar 2019
-Now, change the whiskers into red '--' while keeping the 'x' data a blue 'o'-
x = 1:10:100;
err = 8*ones(size(x));
errorbar(x,err,'o');
hold on;
errorbar(x,err,'r','linestyle','none');
Note: There may be more easy way
  1 commentaire
Ziv Kassner
Ziv Kassner le 18 Mar 2019
The line style of the errors in your example aren't '--' though

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Errorbars dans Help Center et File Exchange

Produits


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by