[Matplotlib-users] controlling the aspect of contour/contourf

2010-11-20 Thread Garry Willgoose
I want to control the ratio of the size of the x and y axes of contour/ contourf() plot (in the same way that 'aspect' lets me control imgshow()). Is there any way to do this? -- Beautiful is writing same markup.

Re: [Matplotlib-users] controlling the aspect of contour/contourf

2010-11-20 Thread Eric Firing
On 11/20/2010 09:05 PM, Garry Willgoose wrote: I want to control the ratio of the size of the x and y axes of contour/ contourf() plot (in the same way that 'aspect' lets me control imgshow()). Is there any way to do this? Yes, use the set_aspect() method of the Axes object: