How can I modify appearence of multiple plots?

3 Ansichten (letzte 30 Tage)
Jonathan Bijman
Jonathan Bijman am 15 Jun. 2019
Kommentiert: dpb am 15 Jun. 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!

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Two y-axis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by