Re: [Matplotlib-users] Can I change pixel aspect with axes_grid

2011-08-20 Thread Eric Firing
On 08/19/2011 07:43 PM, gru...@bigpond.net.au wrote: Usually imshow(arr, aspect='auto') or imshow(arr, aspect=2.0) will display the image with pixels having some aspect ratio other than 1:1 However, I cannot get this to work when using imshow within an AxesGrid axis. Is there a way to get an

Re: [Matplotlib-users] Can I change pixel aspect with axes_grid

2011-08-20 Thread Jae-Joon Lee
If you want aspect=auto, this must also be set when you create ImageGrid. A simple example is attached. If you want a fixed aspect other than 1, it is doable but gets a bit tricky. Let me know if this is what you want. Regards, -JJ from mpl_toolkits.axes_grid1 import ImageGrid fig =

Re: [Matplotlib-users] Can I change pixel aspect with axes_grid

2011-08-20 Thread gary ruben
Thanks Eric and JJ, Both of your answers are solutions to my problem actually. I spent a while trying to figure this out and didn't get anywhere. This was an exercise in frustration with matplotlib's documentation. Thankfully this list and its members are here to save us. I assumed it was just a

[Matplotlib-users] Defining coordinates for contour plot

2011-08-20 Thread Alexa Villaume
Hello, I'm trying to make a contour plot and I'm running into problems when specifying the coordinates for the plot. I do, #Specify coordinates of the surface delta0=1.0 delta1=0.1 x=np.arange(0.0, 6.0, delta0) y=np.arange(-1.0,3.0, delta1) #Contour the arrays. plt.contour(x, y, O3, O3Level)

Re: [Matplotlib-users] Defining coordinates for contour plot

2011-08-20 Thread Eric Firing
On 08/20/2011 02:03 AM, Alexa Villaume wrote: Hello, I'm trying to make a contour plot and I'm running into problems when specifying the coordinates for the plot. I do, #Specify coordinates of the surface delta0=1.0 delta1=0.1 x=np.arange(0.0, 6.0, delta0) y=np.arange(-1.0,3.0, delta1)

Re: [Matplotlib-users] [SciPy-User] getting started with arrays and matplotlib

2011-08-20 Thread Chris Withers
On 07/08/2011 22:29, David Warde-Farley wrote: Secondly, once I've populated this, any good examples of how to turn it into a bar chart? (the simple bar chart would be number of sales on the y-axis, weeks before the event on the x-axis, however, what I'd then like to do is split each bar into