I'd like to know if it is possible to control size of subplots let say control the ratio between x and y axis in length units (not in units of x and y). For example, I'd like to plot 2 graphics with one rectangular ratio y:x 1:3 and the second squared 1:1.

example :

import pylab

x = pylab.nx.mlab.rand(10)

y = pylab.nx.mlab.rand(10)

ax=pylab.subplot(121)

ax.scatter(x,y)

#set_aspect is for x and y units not geometrical dimension of the subplot...

#ax.set_aspect(3)

pylab.subplot(122)

pylab.scatter(x,y)

pylab.show()