Effacer les filtres
Effacer les filtres

How can I modify appearence of multiple plots?

1 vue (au cours des 30 derniers jours)
Jonathan Bijman
Jonathan Bijman le 15 Juin 2019
Commenté : dpb le 15 Juin 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!

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Two y-axis 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