<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 22/08/2018 à 18:53, Samuel Gougeon a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:cfa499fa-91d0-f5e4-1303-856d614ad742@free.fr">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Hello Antoine,<br>
<br>
Le 22/08/2018 à 15:19, <a class="moz-txt-link-abbreviated"
href="mailto:antoine.monmayrant@laas.fr"
moz-do-not-send="true">antoine.monmayrant@laas.fr</a> a
écrit :<br>
</div>
<blockquote
cite="mid:c75c5a87-1882-0365-4b4a-83fa3e22854e@laas.fr"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<p>Hi all,</p>
<p>xs2svg is not working well with big grayplots: the resulting
svg file is too big and contains too many elements to be
usable. Worse, for really big grayplots, the export fails (not
enought memory).<br>
</p>
<p>As an example, the following code:<br>
grayplot()<br>
h=gcf();<br>
xs2svg(h,'grayplot.svg');<br>
results in a 3.7MB svg file with 93784 elements that cannot be
edited with Inkscape.<br>
</p>
<p>The issue is that xs2svg renders each patch of the grayplot
using two svg filled triangles.<br>
In <span class="quote">"he who must not be named"</span>¹,
the svg export is using a more pragmatic approach: everything
is rendered as svg path/text/whatever, except from the
intensity maps (grayplots, surf, ...) that are rendered as bmp
and included in the svg file.<br>
This way, the svg file is really light, can be tweaked with
any svg compliant software (inkscape) and the result is really
good.<br>
In practice, to get publication-quality grayplots, I tend to
do the following:<br>
-hide the grayplot, keep all the rest, export to svg,<br>
-hide everything but the grayplot, export to png,<br>
-use inkscape to include the png of the grayplot and
hand-place it in the svg.</p>
</blockquote>
<br>
Do you remember Calixte's answer to you about this topic in 2012?:<br>
<a class="moz-txt-link-freetext"
href="http://bugzilla.scilab.org/show_bug.cgi?id=11195#c1"
moz-do-not-send="true">http://bugzilla.scilab.org/show_bug.cgi?id=11195#c1</a><br>
</blockquote>
<br>
Her, to be honest, no, I dit not remember.<br>
But Matplot() and Matplot1() are not decent solutions, just
workarounds as they are way more limited than surf(), Sgrayplot(),
contourf()...<br>
In particular, you cannot specify x-axis and y-axis scales using
vectors, which is essential for experimental dataset that are not
always regularly spaced in x- and y-.<br>
Thanks for refreshing my memory.<br>
But it means the solution exists: can't we use the same approach for
other "intensity maps"?<br>
<br>
Antoine<br>
<br>
<blockquote type="cite"
cite="mid:cfa499fa-91d0-f5e4-1303-856d614ad742@free.fr"> <br>
Cheers<br>
Samuel<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Antoine Monmayrant LAAS - CNRS
7 avenue du Colonel Roche
BP 54200
31031 TOULOUSE Cedex 4
FRANCE
Tel:+33 5 61 33 64 59
email : <a class="moz-txt-link-abbreviated" href="mailto:antoine.monmayrant@laas.fr">antoine.monmayrant@laas.fr</a>
permanent email : <a class="moz-txt-link-abbreviated" href="mailto:antoine.monmayrant@polytechnique.org">antoine.monmayrant@polytechnique.org</a>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
</pre>
</body>
</html>