I have a matplotlib plot that I saved to a pdf image. The plot
consists of 1E5 dots plotted with varying colors and opacities.
Actually 1E5 black dots with varying opacities and 64 colored markers.
The trouble is my image is 11 MB and takes a few seconds to fully
display in a PDF reader. I am using this figure in a presentation and
therefore need to reduce the file size so it will display more
quickly. Is there any way I can reduce the size of my image while
still keeping all the data?
If it is only one image, an easy low-tech workaround is to save it as
PNG and then put it into a PDF. This way, you only have to load one
element.
···
On Mon, Aug 30, 2010 at 11:36 PM, Jeremy Conlin <jlconlin@...287...> wrote:
I have a matplotlib plot that I saved to a pdf image. The plot
consists of 1E5 dots plotted with varying colors and opacities.
Actually 1E5 black dots with varying opacities and 64 colored markers.
The trouble is my image is 11 MB and takes a few seconds to fully
display in a PDF reader. I am using this figure in a presentation and
therefore need to reduce the file size so it will display more
quickly. Is there any way I can reduce the size of my image while
still keeping all the data?
Thanks,
Jeremy
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
There a few pdf related parameters in the matplotlibrc file (e.g. resolution, compression). You could play around with them to see if you can get any lower-size output.
···
On Mon, Aug 30, 2010 at 4:36 PM, Jeremy Conlin <jlconlin@…287…> wrote:
I have a matplotlib plot that I saved to a pdf image. The plot
consists of 1E5 dots plotted with varying colors and opacities.
Actually 1E5 black dots with varying opacities and 64 colored markers.
The trouble is my image is 11 MB and takes a few seconds to fully
display in a PDF reader. I am using this figure in a presentation and
therefore need to reduce the file size so it will display more
quickly. Is there any way I can reduce the size of my image while