[scilab-Users] problem with xs2pdf, figure too big

Peter Hinow hinow at uwm.edu
Tue Apr 12 15:12:04 CEST 2011


Dear Calixte and Antoine,
thank you for your suggestions. I have curves to plot (with 10^4 data points on the x-axis). It worked to plot only 1/10th of them and then to export with xs2pdf. Nevertheless, I'm hoping for 5.4 soon. 
Best regards,
       Peter

----- Original Message -----
From: "Antoine Monmayrant" <antoine.monmayrant at laas.fr>
To: users at lists.scilab.org
Sent: Tuesday, April 12, 2011 2:01:15 AM
Subject: Re: [scilab-Users] problem with xs2pdf, figure too big

Le 11/04/2011 20:49, Calixte Denizet a écrit :
> Le lundi 11 avril 2011 à 13:37 -0500, Peter Hinow a écrit :
>> Dear Scilab users,
>> I'm trying to export a figure to a .pdf file, but I get an error "Unable to create export file, figure is too big". How should I deal with this? The figure is quite precise but it was possible to draw it in the first place. The output of getmemory() is 16051736.
> Hi Peter,
>
> This is a known bug of graphic export... and for now there is no bug fix
> possible. You need probably to wait for 5.4.x versions...
>
> A crappy workaround (not tested) could be to export several parts of the
> final graphic in SVG and to superpose the different layers in a software
> like Inkscape, finally you can export it into pdf.
This is indeed a bad bug and here is my crappy workaround:
Usually this bug is triggered when the figure contains a grayplot or 
surf or mesh (ie lots of polygons).
I export two halves of the figure:
     - One half is the complete figure but with the grayplot 
visibilitity turned off (ie everything but the big grayplot). I export 
it as a vector graphic (pdf, eps or svg).
     - The other half is just the grayplot: I turned all the visibility 
tags off apart for the grayplot one that I turn on. I export is as a 
bitmap (bmp, png, whatever).
Then I merge the two with Inkscape.
It works, but it really is a pain in the beeep!
Looking forwards to see 5.4 ready...
> Best regards,
>
> Calixte
>
>> Thank you for your kind help,
>>          Peter
>>
>


-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

  Antoine Monmayrant LAAS - CNRS
  7 avenue du Colonel Roche
  31077 TOULOUSE
  Cedex 4 FRANCE

  Tel:+33 5 61 33 64 59

  email : antoine.monmayrant at laas.fr
  permanent email : antoine.monmayrant at polytechnique.org

+++++++++++++++++++++++++++++++++++++++++++++++++++++++



-- 
Peter Hinow, PhD
Department of Mathematical Sciences
University of Wisconsin - Milwaukee
P.O. Box 413
Milwaukee, WI 53201-0413
USA
phone: ++1 414 229 4933
https://pantherfile.uwm.edu/hinow/www/




More information about the users mailing list