Stéfan van der Walt wrote:
> Hi Eric,
> 
> 2009/9/28 Eric Firing <efir...@hawaii.edu>:
>>> When saving plots (using plt.figsave and matplotlib from SVN)
>>> consisting of subplots, the layout is a bit messed up.  As an example,
>>> have a look at
>>>
>>> http://mentat.za.net/refer/segmentation.pdf
>> Wow, that's really ugly!  I suspect that for anyone to provide any help
>> on this, you will need to supply a minimal script to show what you are
>> doing.  I take it you are starting with something that looks reasonable
>> on the screen, but comes out quite different when you save it?
> 
> I narrowed the problem down to this line:
> 
> matplotlib.rc('figure', dpi=300)
> 
> Does it do some magic behind the scenes?
> 
> Attached is the script that produces this:

Stefan,

You forgot the attachment.

dpi is an inherently confusing parameter because it can relate to font 
rendering and to the resolution of an image.  So there are different 
kinds of dpi, but the distinction between them is not kept clear in the 
code--at least it wasn't the last time I looked into this, quite a long 
time ago.

Eric
> 
> http://mentat.za.net/refer/badplot.pdf
> 
> I'm running 1.0.svn on OSX Snow Leopard, Python 2.6 and NumPy dev.
> 
> Regards
> Stéfan
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to