Petr Danecek <[EMAIL PROTECTED]> writes:

> On Fri, 2007-08-24 at 20:03, Jouni K. Seppänen wrote:
>
>> savefig('foo10.ps', dpi=10)
>> savefig('foo100.ps', dpi=100)
>
> In fact, the dpi option does change the resulting PS file, but the
> quality is still very poor - see the example
>       http://www.ucl.cas.cz/~petr/matplotlib-test.tgz

I don't see a big difference between test-600.eps and test-convert.eps
when viewed in gv with magnification 10 and 0.1, respectively. Obviously
there is some resampling in test-600.eps: your source image is 1494 by
1494 pixels large, which at 600 dpi is larger than the 5 by 5 cm figure
created by the script (and the axes are even smaller). test-convert.eps
has a bounding box of 0 0 1494 1494, so obviously it is a non-resampled
image at 72 dpi.

If the problem you are alluding to is in the resampling, perhaps 
varying the interpolation algorithm will produce a better result? 
See the docstring of imshow.

To get a non-resampled image, figimage should work, but it doesn't seem
to understand PIL images yet...

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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to