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

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 comentarios

KALYAN ACHARJYA
KALYAN ACHARJYA el 18 de Mzo. de 2019
Editada: KALYAN ACHARJYA el 18 de Mzo. de 2019
Can you show the example? Please check here
x = 1:10:100;
err = 8*ones(size(x));
errorbar(x,err,'o')
Now, change the whiskers into red '--' while keeping the 'x' data a blue 'o'
Thanks
Great! thank you!
KALYAN ACHARJYA
KALYAN ACHARJYA el 18 de Mzo. de 2019
Editada: KALYAN ACHARJYA el 18 de Mzo. de 2019
Please check the answer

Iniciar sesión para comentar.

 Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 18 de Mzo. de 2019
Editada: KALYAN ACHARJYA el 18 de Mzo. de 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

Más respuestas (0)

Categorías

Productos

Versión

R2017a

Etiquetas

Preguntada:

el 18 de Mzo. de 2019

Comentada:

el 18 de Mzo. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by