<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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>
    <p>I've reported it:
      <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/show_bug.cgi?id=16447">http://bugzilla.scilab.org/show_bug.cgi?id=16447</a></p>
    <p>Do any of you know a workaround to avoid this bug?<br>
      On more complex RGB images then the small example above, the RGB
      image is not rendered at all (just white emptiness)...<br>
      I really need to export to svg to produce publication quality
      graphics and I have a bunch of bitmap+line plots on top of them...</p>
    <p>Thanks for you help,</p>
    <p><br>
    </p>
    <p>Antoine<br>
    </p>
  </body>
</html>