If you do not mind the output size slightly adjusted, try

 savefig("somename.png", bbox_inches="tight")

Regards,

-JJ


On Tue, Jan 26, 2010 at 3:27 PM, John Hunter <jdh2...@gmail.com> wrote:
> On Tue, Jan 26, 2010 at 12:00 PM, cwurld <cwu...@yahoo.com> wrote:
>>
>> Hi,
>>
>> I am trying to generate some pngs without using the GUI interface using the
>> AGG backend. The problem is when I set figsize, the bottom part of the
>> x-axis label is clipped. I am using python 2.5 in windows XP. I just
>> installed the lastest version of matplotlib today version 0.98.3. Below is
>> the code that produces two images that both have this problem.
>
>
> Try setting
>
> fig.subplots_adjust(bottom=0.2)
>
> The default is 0.1
>
> JDH
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to