[Scilab-users] plot(x) - define color

anna28 parravicini.anna at gmail.com
Fri Feb 19 09:25:01 CET 2021


Hi all,

I would need a help to improve my plot.
I must graph the trend of 20 variables with the function plot(x); I would
like to assign a different color/mark to each variable in order to make
graph understanding immedaite.

At the moment, I do like that and it works:

colour=['.r-','.g-','.k-','.b-','.m-','.r:','.g:','.k:','.b:','.m:','.r--','.g--','.k--','.b--','.m--','.r-.','.g-.','.k-.','.b-.','.m-.'];
for j=1:20
    plot(TestPH(j,:),colour(j));
end

but the plot is not very clear. I would like to add different color and to
reduce line styles, that are difficult to recognize in the plot.

Is there any way to add colors in the "coulour" array? (I cannot use white,
yellow and cyan because difficult to see with white background).

thanks!
Anna




--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html



More information about the users mailing list