Re: [Matplotlib-users] Hardcoded DPI settings in PDF and Cairo backends

2009-04-23 Thread Jouni K . Seppänen
David Kiliani  writes:

> http://matplotlib.svn.sourceforge.net/viewvc/matplotlib?view=rev&revision=4933
> which does not make any sense to me. Why was the kwargs readout
> disabled, even if the default setting was already 72dpi?

Before that change, the dpi setting changed the size of the pages
produced by the pdf backend, not the resolution. But since revision 6645
(release version 0.98.5.2) the dpi argument should set the resolution
of images again. (I think this used to work before the Great Transform
Refactoring, so in versions on the 0.91 branch it should work, too.)

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Hardcoded DPI settings in PDF and Cairo backends

2009-04-23 Thread David Kiliani
Hi,

I'm currently doing my diploma thesis with matplotlib plots and I have a
problem there. Many of the plots include an imshow(), which is completly
blurred when I do a savefig() to PDF. The problem seems to be the
hardcoded DPI settings in the PDF and Cairo backends (dpi=72), which is
far too low for a printing quality image. When looking for the source of
this setting, I found
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib?view=rev&revision=4933
which does not make any sense to me. Why was the kwargs readout
disabled, even if the default setting was already 72dpi? If I
explicitely do a savefig(file, dpi=XX), it could be assumed that I
REALLY WANT a DPI setting of XX. And if I don't supply any dpi
parameter, the default of 72 will be used.

Best regards,
David




signature.asc
Description: OpenPGP digital signature
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users