Picon
Picon
Favicon

Re: Layout of subplots in output

2009/10/31 Eric Firing <efiring@...>:
> You forgot the attachment.

I hate it when that happens -- here it is!

Cheers
Stéfan
Attachment (badplot.py): application/octet-stream, 301 bytes
------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
John Hunter | 1 Nov 14:03
Picon
Gravatar

Re: Layout of subplots in output

2009/11/1 Stéfan van der Walt <stefan@...>:
> 2009/10/31 Eric Firing <efiring@...>:
>> You forgot the attachment.
>
> I hate it when that happens -- here it is!

Hey Stéfan,

To avoid the overlap on the titles and ticks, you will want to play
with the font size of the ticks and title, but most importantly the
subplots_adjust parameters hspace and wspace.
If using a suptitle, you may also want to adjust top.

Eg,

# you can also click on the "subplots adjust" toolbar icon to play with the
# settings to get something that looks right and then hard code this
fig.subplots_adjust(hspace=0.4, wspace=0.4)

for ax in ax1, ax2, ax3, ax4:
    ax.title.set_fontsize(11)
    for label in ax.get_xticklabels() + ax.get_yticklabels)():
        label.set_fontsize(9)

You can also use rc parameters to control the defaults:
http://matplotlib.sourceforge.net/users/customizing.html

JDH

------------------------------------------------------------------------------
(Continue reading)

Picon
Picon
Favicon

Re: Layout of subplots in output

Hi John

2009/11/1 John Hunter <jdh2358@...>:
> To avoid the overlap on the titles and ticks, you will want to play
> with the font size of the ticks and title, but most importantly the
> subplots_adjust parameters hspace and wspace.
> If using a suptitle, you may also want to adjust top.

Thanks for the advice, I'll play around with those parameters.

I was surprised that this works fine under Linux, so I tried switching
to the PDF backend on OSX, and now everything renders perfectly.
Could it be that the MacOSX backend does something strange?

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
Jae-Joon Lee | 1 Nov 16:39
Picon
Gravatar

Re: Layout of subplots in output

Stefan,

Can you try to install matplotlib again, after removing old ones.
The mac os X had a bug that does take care of the dpi. But I guess
this bug has been fixed in the svn.

http://old.nabble.com/Re%3A-Font-size-and-savefig-p23337463.html

-JJ

2009/11/1 Stéfan van der Walt <stefan <at> sun.ac.za>:
> Hi John
>
> 2009/11/1 John Hunter <jdh2358 <at> gmail.com>:
>> To avoid the overlap on the titles and ticks, you will want to play
>> with the font size of the ticks and title, but most importantly the
>> subplots_adjust parameters hspace and wspace.
>> If using a suptitle, you may also want to adjust top.
>
> Thanks for the advice, I'll play around with those parameters.
>
> I was surprised that this works fine under Linux, so I tried switching
> to the PDF backend on OSX, and now everything renders perfectly.
> Could it be that the MacOSX backend does something strange?
>
> Regards
> Stéfan
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
(Continue reading)

Picon
Picon
Favicon

Re: Layout of subplots in output

Hi JJ

2009/11/1 Jae-Joon Lee <lee.j.joon@...>:
> Can you try to install matplotlib again, after removing old ones.
> The mac os X had a bug that does take care of the dpi. But I guess
> this bug has been fixed in the svn.

Unfortunately, I still see the same behaviour using the latest version
from SVN.  As noted earlier, I work around the issue now by switching
to the pdf backend.

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
Jae-Joon Lee | 2 Nov 16:10
Picon
Gravatar

Re: Layout of subplots in output

I now think this is not the dpi issue.
Can you check the size of your figure in mac os X backend, after the
plot is drawn?

print f.get_size_inches()

8x6 inch is the default.

With dpi setting of 300 and bigger, the figure size (in pixel) will be
likely larger than your monitor size. And it seems that in mac os X
backend, the figure gets shrunken to fit the display, effectively
reducing the figuresize.

So, my recommendation is to use smaller dpi for screen display
(default is something like 80), and increase the dpi when saving the
figure ("savefig" has a dpi parameter).

Regards,

-JJ

2009/11/2 Stéfan van der Walt <stefan <at> sun.ac.za>:
> Hi JJ
>

>> this bug has been fixed in the svn.
>
> Unfortunately, I still see the same behaviour using the latest version
> from SVN.  As noted earlier, I work around the issue now by switching
> to the pdf backend.
(Continue reading)

tcb | 2 Nov 20:45
Picon

Incorrect output from demo_text_path.py on mac

Hi,

I am running the svn version of matplotlib on a mac (OSX 10.6 with latest macports), and there is a problem with the output from demo_text_path.py. It does give the correct output on linux, so I assume the problem is either with the installed fonts on the mac, or with the mathtext code (in particular the tables in _mathtext_data.py). From the output, you can see that the text is correct in the upper subplot, but in the lower one, where is uses mathematical symbols, it is garbled. I get the same output for different backends (I have checked with macosx, GTKAgg and pdf).


If I can help to figure out the problem, please let me know,

regards,

tcb

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Matthew West | 2 Nov 23:59
Favicon

Closing paths in PolyCollection

Hi,

The PolyCollection class currently closes the path for each polygon by  
adding a last point the same as the first point. This means that the  
line joins will be different on this point. I've submitted a patch to  
make PolyCollection use Path.CLOSEPOLY to close the path, which makes  
the line joins on the stroking correct.

See https://sourceforge.net/tracker/?func=detail&aid=2890979&group_id=80706&atid=560722

There is also a small test script and the current and expected output  
attached to the above tracker entry.

Please let me know if there is some other way this should be fixed.

Best regards,
Matt.

------------------------------------------------------------------------------
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
Robert Schroll | 3 Nov 04:42
Picon

Bug in Interactive Save with WX Backend

Dear all,

I hope this isn't considered gauche, but:

A few weeks ago, I added a bug [1] I had found when saving figures from 
the toolbar with a WX-based backend.  I think it's a simple issue, and I 
included the simple fix that worked for me.  Since then there's been no 
apparent activity on it.  Is there something more I need to do on it?

If someone is already taking care of it, I apologize for hassling you. 
But if the fix is as simple as I think it is, it would be a shame to 
have it fall through the cracks.

Thanks,
Robert

[1]https://sourceforge.net/tracker/?func=detail&atid=560720&aid=2880836&group_id=80706

------------------------------------------------------------------------------
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
Jae-Joon Lee | 3 Nov 05:12
Picon
Gravatar

Re: Incorrect output from demo_text_path.py on mac

Thanks for the report.
And I wonder if you can provide us some more details of your
configuration and do some more tests.

1) You're not using usetex mode, correct?

2) Does your mathtext work fine otherwise? I mean, with the ordinary
text command, not the textpath example.

Regards,

-JJ

On Mon, Nov 2, 2009 at 2:45 PM, tcb <thecolourblue+m@...> wrote:
> Hi,
>
> I am running the svn version of matplotlib on a mac (OSX 10.6 with latest
> macports), and there is a problem with the output from demo_text_path.py. It
> does give the correct output on linux, so I assume the problem is either
> with the installed fonts on the mac, or with the mathtext code (in
> particular the tables in _mathtext_data.py). From the output, you can see
> that the text is correct in the upper subplot, but in the lower one, where
> is uses mathematical symbols, it is garbled. I get the same output for
> different backends (I have checked with macosx, GTKAgg and pdf).
>
>
> If I can help to figure out the problem, please let me know,
>
> regards,
>
> tcb
>
>
> ------------------------------------------------------------------------------
> 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@...
> 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

Gmane