<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    The code seems correct and it works on my system (see attached
    file):<br>
    <tt>plot() // produce demo<br>
      file_name = "test"<br>
      xs2svg(0,strcat([file_name,".svg"]),"portrait");</tt><br>
    <br>
    I'm not very well informed on GC but I have a Quadro FX 3500. I use
    the recommended proprietary NVIDIA drivers under Ubuntu 11.04 (sorry
    I don't understand anything about NVIDIA driver version but if you
    know commands to get more information don't hesitate). This config
    works for more than 2 years (with the previous drivers).<br>
    <br>
    By the way if you use "vesa" I guess X11 doesn't use the NVIDIA
    driver.<br>
    <br>
    So I'm sorry but you will probably have to update your drivers (if
    you use Ubuntu this should be easy with System -> Administration
    -> Additional drivers)... If it doesn't work you may have a look
    at the Nouveau drivers.<br>
    <br>
    HTH,<br>
    Mathieu<br>
    <br>
    On 03/15/2012 07:23 PM, Dean Parsons wrote:
    <blockquote
cite="mid:C69F178E843D694D9E40DC0AB37630EB05D44FD5@mbox-txa1.vitesse.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {margin-right:0in;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";
        color:black}
span.emailstyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.emailstyle18
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.EmailStyle20
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page Section1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.Section1
        {}
-->
</style>
      <div class="Section1">
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Mathieu,</span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Thanks
            for your response. Here is the line of code where I execute
            xs2svg:</span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">xs2svg(1,strcat([file_name,".svg"]),"portrait");</span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">This
            line works fine on windows version of scilab.</span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">When
            I run the line above I get 2 errors at the same time. The
            first one appears in the scilab console window:</span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
        <p class="MsoNormal">xs2svg: GL2PS error during export.</p>
        <p class="MsoNormal">at line     412 of exec file called by :   
        </p>
        <p class="MsoNormal">  exec(%fileToExec);                
          disp(msprintf(gettext("Execution done.\
        </p>
        <p class="MsoNormal">while executing a callback</p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">The
            second one I believe comes from the linux redhat OS. It
            appears in a linux window or linux terminal. In other words,
            it appears in a non-scilab window:</span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
        <p class="MsoNormal">GL2PS error: gl2psBeginPage called in wrong
          program state</p>
        <p class="MsoNormal"> </p>
        <p class="MsoNormal">Please let me know if you need any other
          info.</p>
        <p class="MsoNormal"> </p>
        <p class="MsoNormal">Regards,</p>
        <p class="MsoNormal"> </p>
        <p class="MsoNormal">Dean Parsons</p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
        <div>
          <div style="border-right: medium none; border-width: 1pt
            medium medium; border-style: solid none none; border-color:
            rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
            padding: 3pt 0in 0in;">
            <p class="MsoNormal"><b><span style="font-size: 10pt;
                  font-family:
                  "Tahoma","sans-serif"; color:
                  windowtext;">From:</span></b><span style="font-size:
                10pt; font-family:
                "Tahoma","sans-serif"; color:
                windowtext;"> Mathieu Dubois
                [<a class="moz-txt-link-freetext" href="mailto:mathieu.dubois@limsi.fr">mailto:mathieu.dubois@limsi.fr</a>]
                <br>
                <b>Sent:</b> Thursday, March 15, 2012 12:47 PM<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
                <b>Subject:</b> Re: [scilab-Users] GL2PS error when
                exporting</span></p>
          </div>
        </div>
        <p class="MsoNormal"> </p>
        <p class="MsoNormal">Hello,<br>
          <br>
          On 03/15/2012 03:38 PM, Dean Parsons wrote: </p>
        <div>
          <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I
              thought I would send this again since I never received a
              response.</span></p>
          <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
          <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Dean
              Parsons</span></p>
          <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
          <div>
            <div style="border-right: medium none; border-width: 1pt
              medium medium; border-style: solid none none;
              border-color: windowtext -moz-use-text-color
              -moz-use-text-color; padding: 3pt 0in 0in;">
              <p class="MsoNormal"><b><span style="font-size: 10pt;
                    font-family:
                    "Tahoma","sans-serif";">From:</span></b><span
                  style="font-size: 10pt; font-family:
                  "Tahoma","sans-serif";"> Dean
                  Parsons
                  <br>
                  <b>Sent:</b> Tuesday, March 13, 2012 9:03 AM<br>
                  <b>To:</b> <a moz-do-not-send="true"
                    href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
                  <b>Subject:</b> GL2PS error when exporting</span></p>
            </div>
          </div>
          <p class="MsoNormal"> </p>
          <p class="MsoNormal">Oops, I forgot to mention that my linux
            terminal gives me the following error message when I run
            xs2svg:</p>
          <p class="MsoNormal"> </p>
          <p class="MsoNormal">GL2PS error: gl2psBeginPage called in
            wrong program state</p>
        </div>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            "Times New Roman","serif";">Why do you
            mean by Linux Terminal? You mean when you type 'xs2svg'
            under bash? If that's the I don't know this command (not
            found on my ubuntu box) but I think it's not related to
            scilab.<br>
            <br>
            So if I understand correctly you receive 2 different error
            messages when using xs2svg: one time "GL2PS error:
            gl2psBeginPage called in wrong program state", one time
            ''xs2svg: GL2PS error during export.", right?<br>
            <br>
            Can you give us exactly the way you call xs2svg?<br>
            <br>
            <br>
          </span></p>
        <div>
          <p class="MsoNormal"> </p>
          <p class="MsoNormal">Regards,</p>
          <p class="MsoNormal"> </p>
          <p class="MsoNormal">Dean Parsons</p>
          <p class="MsoNormal"> </p>
          <p class="MsoNormal"> </p>
          <p class="MsoNormal">Hi,</p>
          <p class="MsoNormal"> </p>
          <p class="MsoNormal">I’m running scilab 5.1 64 bit on linux.
            (I had to change the Device to “vesa” in the “Device”
            Section of the /etc/X11/xorg.conf file to get the graphics
            to work correctly.)</p>
          <p class="MsoNormal"> </p>
          <p class="MsoNormal">When I run xs2svg I get the following
            error:</p>
          <p class="MsoNormal"> </p>
          <p class="MsoNormal">xs2svg: GL2PS error during export.</p>
          <p class="MsoNormal">at line     412 of exec file called by
            :    </p>
          <p class="MsoNormal">  exec(%fileToExec);                
            disp(msprintf(gettext("Execution done.\
          </p>
          <p class="MsoNormal">while executing a callback</p>
          <p class="MsoNormal">  </p>
          <p class="MsoNormal">My graphics card is an nVidia Quadro
            FX3450. The driver is version A1391.85 dated 10/30/2007.
            <span style="color: rgb(31, 73, 125);">After searching the
              nvidia website I did find a more recent version of the
              driver which I will install and try. Besides updating my
              GC driver, do you have a</span>ny
            <span style="color: rgb(31, 73, 125);">other </span>suggestions
            as to how I can work around this?</p>
          <p class="MsoNormal"> </p>
          <p class="MsoNormal">Thanks,</p>
          <p class="MsoNormal"> </p>
          <p class="MsoNormal">Dean Parsons</p>
          <p class="MsoNormal"> </p>
        </div>
        <p class="MsoNormal" style="margin-left: 0.5in;"><i><span
              style="font-size: 10pt;">CONFIDENTIALITY NOTICE: This
              e-mail message, including any attachments, is for the sole
              use of the intended recipient(s) and may contain
              confidential and privileged information. Any unauthorized
              review, use, disclosure or distribution is prohibited. If
              you are not the intended recipient, please contact the
              sender by reply e-mail and destroy all copies of the
              original message.</span></i></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            "Times New Roman","serif";"> </span></p>
      </div>
      <p class="MsoNormal" style="margin-left: 0.5in;"><i><span
            style="font-size: 10pt; color: black;">CONFIDENTIALITY
            NOTICE: This e-mail message, including any attachments, is
            for the sole use of the intended recipient(s) and may
            contain confidential and privileged information. Any
            unauthorized review, use, disclosure or distribution is
            prohibited. If you are not the intended recipient, please
            contact the sender by reply e-mail and destroy all copies of
            the original message.</span></i></p>
    </blockquote>
    <br>
  </body>
</html>