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:
http://matplotlib.sourceforge.net/api/axes_api.html?highlight=aspect#matplotlib.axes.Axes.set_aspect
Eric
ยทยทยท
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?