<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#330000">
    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
      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>
  </body>
</html>