Re: [Matplotlib-users] Set width before saving

2012-02-29 Thread Mario Fuest
Hi there, John Hunter schrieb am Wed, 29. Feb 07:04: > On Feb 28, 2012, at 4:03 PM, Benjamin Root wrote: > > The size of the PNG will be based on the size of your figure object. When > > you create your figure, you can pass a figsize kwarg which takes a tuple of > > width, height in inches (d

Re: [Matplotlib-users] Set width before saving

2012-02-29 Thread John Hunter
On Feb 28, 2012, at 4:03 PM, Benjamin Root wrote: > The size of the PNG will be based on the size of your figure object. When > you create your figure, you can pass a figsize kwarg which takes a tuple of > width, height in inches (defaults to 8 x 6, I think). > > fig = plt.figure(figsize=(

Re: [Matplotlib-users] Set width before saving

2012-02-28 Thread Benjamin Root
On Tue, Feb 28, 2012 at 3:48 PM, Mario Fuest wrote: > Hi there, > > Currently i use these commands to layout and save my figures: > > > figure > > ... > > gca.set_aspect('equal') > > gca.autoscale(tight=True) > > ... > > plt.savefig('fpp.png', bbox_inches='tight', pad_inches=0) > > I would

[Matplotlib-users] Set width before saving

2012-02-28 Thread Mario Fuest
Hi there, Currently i use these commands to layout and save my figures: > figure > ... > gca.set_aspect('equal') > gca.autoscale(tight=True) > ... > plt.savefig('fpp.png', bbox_inches='tight', pad_inches=0) I would like to set the width of this png file, how to do that? If savefig() does n