<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <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>
    <p>Could xs2svg be modified to implement this approach automatically
      (maybe using an optional parameter)?<br>
      Could this be the basis for a SEP?</p>
    <p>Thanks for you feedback,<br>
    </p>
    <p>Antoine</p>
    <p>¹ Matlab<br>
    </p>
    <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>