<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Le 03/04/2012 19:27, Adrien Vogt-Schilb a écrit :
<blockquote cite="mid:4F7B330C.40602@centre-cired.fr" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
On 03/04/2012 17:47, grivet wrote:
<blockquote cite="mid:4F7B1B87.30903@cnrs-orleans.fr" type="cite">
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
<small>Hello,<br>
How can I change the color of a string using Scilab5.3.2?<br>
For instance, I wish to plot two vectors using
plot2d(u,[a,b],style=[2,14]) and then write a<br>
label next to each curve with xstring(xa,ya,string_a), </small><small>xstring(xb,yb,string_b);
this works.<br>
Now, I would like to match the color of the text to that of
the curves. I tried xset("color",2)<br>
and xset("color",14); this changes the color of the axes (in
an unpredictable manner) but not <br>
that of the text.<br>
Thanks for your help<br>
<br>
<br>
</small><small> </small> </blockquote>
Hi<br>
<br>
Build on this:<br>
<br>
plot()<br>
xstring(1,0,"ET PAF!")<br>
e=gce()<br>
e.font_foreground = 3<br>
<br>
or if you are familiar with <a moz-do-not-send="true"
href="http://en.wikipedia.org/wiki/RGB_color_model">RGB</a>:<br>
<br>
e.font_foreground = color(255,100,100)<br>
<br>
br<br>
avs<br>
</blockquote>
<font size="-1">Thank you Adrien, this works fine; is there a way to
change the color of several strings at the same time<br>
instead of repeating the sequence xstring(), e =
gce(),e.font_foreground = n for each ?<br>
JP Grivet<br>
</font>
</body>
</html>