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 <jd...@gm...> wrote:
> On Tue, Jan 26, 2010 at 12:00 PM, cwurld <cw...@ya...> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|