On Thu, Jun 6, 2013 at 10:14 AM, Michael Droettboom <md...@stsci.edu> wrote:

>  By default (when interpolation="nearest") matplotlib is performing
> nearest neighbor interpolation on the image to the request PDF dpi before
> storing it in the file.  This results in rows and columns of unequal size
> because the ratio from the original image to the destination resolution is
> likely not integral.
>
> You can set interpolation="none", which will pass the original image as-is
> on to the file, but then we can't control the interpolation mode (since
> there's no way to tell the PDF viewer what sort of interpolation to
> perform), so that (usually) will result in bicubic interpolation, which is
> probably not what you want.
>
> Mike
>
>
>From experience, it seems that pcolor() or pcolormesh() works best for
pdf's because it saves the polygons.  You might need some tweaking to get
it exactly right, but at least the pdf viewer won't smudge it all out.

Cheers!
Ben Root
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to