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