Re: [matplotlib-devel] Layout of subplots in output

2009-11-01 Thread Stéfan van der Walt
2009/10/31 Eric Firing :
> You forgot the attachment.

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

Cheers
Stéfan


badplot.py
Description: Binary data
--
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


Re: [matplotlib-devel] Layout of subplots in output

2009-11-01 Thread John Hunter
2009/11/1 Stéfan van der Walt :
> 2009/10/31 Eric Firing :
>> 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

--
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


Re: [matplotlib-devel] Layout of subplots in output

2009-11-01 Thread Stéfan van der Walt
Hi John

2009/11/1 John Hunter :
> 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
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Layout of subplots in output

2009-11-01 Thread Jae-Joon Lee
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 :
> Hi John
>
> 2009/11/1 John Hunter :
>> 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
> ___
> 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