[Matplotlib-users] imshow with pdf

2008-12-15 Thread Haibao Tang
I have raised two issues on imshow with pdf backend weeks ago since the upgrade from 0.91 to 0.98. I am happy to see one of them already fixed. However, the following issue is still there. In the following script, I try to display an image in a pdf. This would run. Now please change the maize.pdf

Re: [Matplotlib-users] imshow with pdf

2008-12-15 Thread Jouni K . Seppänen
Haibao Tang tanghai...@gmail.com writes: However, the following issue is still there. In the following script, I try to display an image in a pdf. This would run. Now please change the maize.pdf to maize.png and generate yet another file. Zoom and look closely at the two files generated. You

Re: [Matplotlib-users] imshow with pdf

2008-12-15 Thread Jouni K . Seppänen
Michael Droettboom md...@stsci.edu writes: Keep in mind that we can't control the kind of interpolation used by the PDF viewer. I don't know if that is what you're seeing. I think the problem is with image dpi: % identify maize_raw.jpg maize_raw.jpg JPEG 400x812 400x812+0+0 DirectClass

Re: [Matplotlib-users] imshow with pdf

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 11:04 AM, Jouni K. Seppänen j...@iki.fi wrote: The (812 pixels high) image has been embedded in a png of height 617, but in the pdf file it has height 446. 446/617 is about .72, so the problem must be that the pdf backend forces the dpi to 72, while the png file is