<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>OK, just tested on my real plot: it does work!<br>
      Samuel: how did you come up with this fix?</p>
    <p>Antoine<br>
    </p>
    <div class="moz-cite-prefix">On 28/05/2020 00:37, Samuel Gougeon
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:97107df8-d486-2cdf-3e55-a06ae145e6b5@free.fr">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">Hello Antoine,</div>
      <div class="moz-cite-prefix"><br>
      </div>
      <div class="moz-cite-prefix">Just add</div>
      <div class="moz-cite-prefix"><span style="color:rgb(0,0,0);">gce</span><span
          style="color:rgb(74,85,219);">(</span><span
          style="color:rgb(74,85,219);">)</span><span
          style="color:rgb(92,92,92);">.</span><span
          style="color:rgb(170,170,170);">image_type</span> <span
          style="color:rgb(92,92,92);">=</span> <span
          style="color:rgb(188,143,143);">"</span><span
          style="color:rgb(188,143,143);">rgba</span><span
          style="color:rgb(188,143,143);">"</span><span
          style="color:rgb(0,0,0);">;<br>
          <br>
          immediately after the Matplot() instruction</span><span
          style="color:rgb(0,0,0);">, without adding a fourth layer to
          gce().data</span><span style="color:rgb(0,0,0);">.<br>
          This makes the three .svg .pdf and .ps conversions working.<br>
          <br>
          Best regards.<br>
          Samuel</span></div>
      <div class="moz-cite-prefix"><span style="color:rgb(0,0,0);"><br>
        </span></div>
      <div class="moz-cite-prefix">Le 27/05/2020 à 08:58, Antoine
        Monmayrant a écrit :<br>
      </div>
      <blockquote type="cite"
        cite="mid:71a9dbe1-5e32-8685-289a-7b9c1f1abd9d@laas.fr">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <p>Hi all,</p>
        <p><br>
        </p>
        <p>It seems there is a bug in the export of graphics to vector
          formats (svg, pdf, ps): it fails for elements in your graphic
          windows that were generated using Matplot on an RGB
          hypermatrix:</p>
        <p>////////////////////////////////////////////////////////////////////////////////////////////////////</p>
        <pre id="comment_text_0">img(:,:,1)=[ 1 0 0 ; 0 1 0 ; 0 0 1]*255;
img(:,:,2)=[ 0 0 1 ; 0 1 0 ; 1 0 0]*255;
img(:,:,3)=[ 0 1 0 ; 0 1 0 ; 0 1 0]*255;

h=scf();
Matplot(img);

xs2png(h,"img.png"); // correct
xs2svg(h,"img.svg"); // wrong
xs2pdf(h,"img.pdf"); // wrong again
xs2ps(h,"img.ps"); // wrong again</pre>
        <p>////////////////////////////////////////////////////////////////////////////////////////////////////</p>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>