<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi,<br></div><div><br></div><div>from my understanding, easiest way to get the color you wanted is by specifying it during the plot function. <br></div><div>--> plot(x,sin(x),'b')<br></div><div>--> plot(x,cos(x),'b')<br></div><div>will gives u 2 blue lines.<br></div><div><br></div><div><br></div><div>By default, scilab figure will following the sequence as stated in "help plot"<br></div><div><br></div><div><br></div><div>"A default color table is used to color plotted curves if you do not specify a color. When drawing multiple lines, the plot command automatically cycles through this table. Here are the used colors:"<br></div><div><br></div><div>R G B<br></div><div>0. 0. 1.<br></div><div>0. 0.5 0.<br></div><div>1. 0. 0.<br></div><div>0. 0.75 0.75<br></div><div>0.75 0. 0.75<br></div><div>0.75 0.75 0.<br></div><div>0.25 0.25 0.25<br></div><div style="" class="zmail_extra"><div><br></div><div>no matter what colormap you are changing to before the plot, the plot w/o color input will search for the "blue" in the newly define colormap as well. <br></div><div><br></div><div>If the previous methods does not work for you, you could plot the graph, find the handle for the line, and change it according to the color index in the colormap for the figure.<br></div><div><br></div></div><div><div>plot(x,sin(x),x,cos(x))<br></div></div><div class="zmail_extra" style=""><div><div>f = gcf();<br></div><div>f.children.children.children.foreground<br></div><div class="zmail_extra" style=""><div>f.children.children.children.foreground(1) = 2;<br></div></div><div><br></div><div>this will change the second line to blue, as the default colormap f.colormap define blue in the second row. (f.color_map)<br></div></div><div><br></div><div>hope this helps.<br></div><div><br></div><div>rgds,<br>CL<br></div><div><br></div><div id="Zm-_Id_-Sgn1">---- On Mon, 21 Oct 2019 18:41:09 +0800 <b>Dang Ngoc Chan, Christophe <<a target="_blank" href="mailto:Christophe.Dang@sidel.com">Christophe.Dang@sidel.com</a>></b> wrote ----<br></div><div><br></div><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin: 0px 0px 0px 5px;"><div>Hello Pierre, <br> <br>> De : Perrichon <br>> Envoyé : lundi 21 octobre 2019 12:05 <br>> <br>> Generally, when plotting, curves's color are taken in the range color <br>> [1 3 5 7 9 11 13 15 [...] Is there a general way to modify this vector <br>> as to get another one with blue as first curve. <br> <br>You might consider redefining the colour map: <br> <br><a target="_blank" href="https://help.scilab.org/docs/6.0.2/en_US/colormap.html">https://help.scilab.org/docs/6.0.2/en_US/colormap.html</a> <br> <br>Hope this helps, <br> <br>regards <br> <br>-- <br>Christophe Dang Ngoc Chan <br>Mechanical calculation engineer <br> <br>General <br>This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. <br>_______________________________________________ <br>users mailing list <br><a target="_blank" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a> <br><a target="_blank" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a> <br></div></blockquote></div><div><br></div></div><br></body></html>