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

1 Ansicht (letzte 30 Tage)
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 Kommentare
KALYAN ACHARJYA
KALYAN ACHARJYA am 18 Mär. 2019
Bearbeitet: KALYAN ACHARJYA am 18 Mär. 2019
Please check the answer

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

KALYAN ACHARJYA
KALYAN ACHARJYA am 18 Mär. 2019
Bearbeitet: KALYAN ACHARJYA am 18 Mär. 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

Weitere Antworten (0)

Kategorien

Mehr zu Errorbars finden Sie in Help Center und File Exchange

Produkte


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by