SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Eric F. <ef...@ha...> - 2008年01月31日 07:00:36
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
From: Rob H. <he...@ta...> - 2008年01月31日 07:46:36
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
> Mat...@li...
> 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
From: Michael D. <md...@st...> - 2008年01月31日 14:23:57
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
>> Mat...@li...
>> 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
> Mat...@li...
> 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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /