Re: [Matplotlib-users] png is clipped

2010-01-26 Thread cwurld
Another way to solve this problem is to not use the figsize keyword when creating the Figure. Instead only adjust the dpi. For example: w,h=fig.get_size_inches() target_width_pix=300 dpi=target_width_pix/w canvas.print_figure(fname1,dpi=dpi) -- View this message in context: http://old.nabble.

Re: [Matplotlib-users] png is clipped

2010-01-26 Thread cwurld
Jae-Joon Lee wrote: > > savefig("somename.png", bbox_inches="tight") > I tried it and it did NOT solve the problem. The "fig.subplots_adjust(bottom=0.2)" solution did solve the problem. -- View this message in context: http://old.nabble.com/png-is-clipped-tp27327004p27333507.html Sent from

Re: [Matplotlib-users] png is clipped

2010-01-26 Thread Jae-Joon Lee
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 wrote: > On Tue, Jan 26, 2010 at 12:00 PM, cwurld wrote: >> >> Hi, >> >> I am trying to generate some pngs without using the GUI i

Re: [Matplotlib-users] png is clipped

2010-01-26 Thread John Hunter
On Tue, Jan 26, 2010 at 12:00 PM, cwurld 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 la

[Matplotlib-users] png is clipped

2010-01-26 Thread cwurld
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 th