How can I modify appearence of multiple plots?

1 visualización (últimos 30 días)
Jonathan Bijman
Jonathan Bijman el 15 de Jun. de 2019
Comentada: dpb el 15 de Jun. de 2019
Hi everyone
I have these commands for plotting 6 variables with its deviations standards respective.
x = linspace(0, 54, numel(T_A8_C));
X = [x;x;x;x;x;x].';
Y = [T_A8_C(:) T_C5_C(:) T_E1_C(:) T_A8_D(:) T_C5_D(:) T_E1_D(:)];
err=[T_desvA8_C(:) T_desvC5_C(:) T_desvE1_C(:) T_desvA8_D(:) T_desvC5_D(:) T_desvE1_D(:)];
errorbar(X,Y,err)
xticks(1:54);
title('Cell Temperature Plot')
xlabel('Time (Days)')
ylabel('Cell Temperature (°C)')
legend('A8 Clean','C5 Clean','E1 Clean','A8 Dirty','C5 Dirty','E1 Dirty');
And I want:
all variables with A8 red color, all variables with C5 blue color, all variables with E1 black color.
all variables with C with a line continuous (a little thicker than default) and all variables with D in segments (either dot-dot or dash-dot)
How can I do that with too many variables?
Thanks for your help!

Respuesta aceptada

dpb
dpb el 15 de Jun. de 2019
Save the errorbar object returned handles and set properties as desired.
  4 comentarios
Jonathan Bijman
Jonathan Bijman el 15 de Jun. de 2019
Thanks a lot @dpb, it really helps! =)
dpb
dpb el 15 de Jun. de 2019
Glad to help...it pays to read and search the documentation for "how to" topics...

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Two y-axis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by