[Matplotlib-users] Fixed width - axis equal *and* tight

2011-12-24 Thread Mario Fuest
Hi there, I want to examine a vector field and therefore i used "quiver" to visualize said field: > import numpy as np > import matplotlib.pyplot as plt > > # points > x, y = np.meshgrid(np.arange(0, 2*np.pi, 0.1), >np.arange(0, 1*np.pi, 0.1)) > # derivatives > dx = -2*np.sin

Re: [Matplotlib-users] Fixed width - axis equal *and* tight

2012-01-03 Thread Mario Fuest
Hi, Maybe a bad idea to ask a question on x-mas. Well, I hope it’s not that unpolite to push one‘s questions. :) Basically I just want to set a fixed width/height on my figure. That should be possible? Mario Fuest schrieb am Sat, 24. Dec 16:42: > Hi there, > > I want to examine a vec

[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

Re: [Matplotlib-users] Fixed width - axis equal *and* tight

2012-02-28 Thread Mario Fuest
Hi, Sorry for the late reply. Tony Yu schrieb am Tue, 03. Jan 17:07: > You can try > > >>> ax.set_aspect('equal') > >>> ax.autoscale(tight=True) > > The order doesn't seem to matter. That works well, thank you! :) Kind regars, Keba. --

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