This should now be fixed in SVN r4909.  The padding between the axes and 
the tick labels was not getting updated when the dpi changed.  (That's 
why Rob's workaround worked, because it set the dpi "early enough").

There is still a known dpi bug with custom-shaped scatter plots, but I 
hope to tackle that next.

Cheers,
Mike

Rob Hetland wrote:
> I noticed this bug last week (and forgot to send it in until now.. I  
> know.. shame on me..).
> 
> Here is the workaround (responsible for my laziness):
> 
> figure(dpi=500)
> # make a figure
> savefig(dpi=500)
> 
> That is, as long as the figure and savefig dpi match, it looks  
> alright.  Otherwise, the tick labels are off.
> 
> I'm using recent svn (trunk).
> 
> -Rob
> 
> On Jan 31, 2008, at 8:00 AM, Eric Firing wrote:
> 
>> In the course of answering a question by Alan Isaac, I saved some
>> figures at different dpi values and hit a bug with png output:
>>
>> imshow(rand(100,100))
>> gcf().savefig('f200.png', dpi=200)
>>
>> This results in tick labels that overlap the image, and it gets worse
>> with higher dpi.  PS backend output is OK.
>>
>> This is with svn trunk.
>>
>> Eric
>>
>> ---------------------------------------------------------------------- 
>> ---
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Matplotlib-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
> ----
> Rob Hetland, Associate Professor
> Dept. of Oceanography, Texas A&M University
> http://pong.tamu.edu/~rob
> phone: 979-458-0096, fax: 979-845-6331
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to