Re: [Matplotlib-users] sluggish pdfs with large data sets

2009-03-03 Thread Jouni K . Seppänen
Daniel Soto writes: > as far as the pdf.compression not working, i was using rcParams in the > script so i'm almost certain the options were being loaded. A quick way to check if your pdf.compression setting is being picked up is to grep the pdf file for /FlateDecode. If pdf.compression is set t

Re: [Matplotlib-users] sluggish pdfs with large data sets

2009-03-03 Thread Daniel Soto
ok. i managed to install 0.98.5.x from source into my enthought python distribution. after that, using path.simplify helped considerably. as far as the pdf.compression not working, i was using rcParams in the script so i'm almost certain the options were being loaded. thanks mike, drs On 3

Re: [Matplotlib-users] sluggish pdfs with large data sets

2009-03-03 Thread Christopher Brown
Hi Michael, MD> With recent versions of matplotlib, you can set the "path.simplify" MD> rcParam to True, which should reduce the data so that vertices that MD> have no impact on the plot appearance (at the given dpi) are MD> removed. Wow. My time-domain waveform plots went from 3.3 mb to 84 kb.

Re: [Matplotlib-users] sluggish pdfs with large data sets

2009-03-03 Thread Jouni K . Seppänen
Daniel Soto writes: > are there any other options or backends that might help? One thing that might be worth trying if this is a real problem for you -- but it will require some programming -- is to make use of the start_rasterizing and stop_rasterizing methods of MixedModeRenderer. You would

Re: [Matplotlib-users] sluggish pdfs with large data sets

2009-03-03 Thread Michael Droettboom
path.simplify was added some time after 0.98.3. You'll have to upgrade to 0.98.5.x for that feature. pdf.compression should have some impact on file size, but I doubt it will have much impact on display times, since it doesn't actually remove any data. I'm surprised this isn't having any effe

Re: [Matplotlib-users] sluggish pdfs with large data sets

2009-03-03 Thread Daniel Soto
thanks for the suggestion. i'm running 0.98.3 and have tried pdf.compression path.simplify agg.path.chunksize without any change in filesize (176KB) or time to open file (13 sec). are there any other options or backends that might help? drs On 3 Mar 2009, at 05:29, Michael Droettboom wrote:

Re: [Matplotlib-users] sluggish pdfs with large data sets

2009-03-03 Thread Michael Droettboom
With recent versions of matplotlib, you can set the "path.simplify" rcParam to True, which should reduce the data so that vertices that have no impact on the plot appearance (at the given dpi) are removed. You can do either, in your script: from matplotlib import rcParam rcParam['path.simpl

[Matplotlib-users] sluggish pdfs with large data sets

2009-03-02 Thread Daniel Soto
hello, i'm using matplotlib on os x and am having issues with plots of large data sets. i have some plots which contain about ~1 points and the pdf files generated bring preview.app and quicklook to their knees when they open the pdf files. here is a small file that reproduces my issue