You are looking for
matplotlib.axes.Subplot.set_position
set_position(self, pos) method of matplotlib.axes.Subplot instance
Set the axes position with pos = [left, bottom, width, height]
in relative 0,1 coords
ACCEPTS: len(4) sequence of floats
axes_top.set_position([left, bottom, width, height])
etc.
···
On Friday 31 March 2006 08:38, Andrew B. Young wrote:
Hello:
How does one go about controlling the size of a subplot?
I've got--figure = matplotlib.pylab.Figure()
canvas = FigureCanvas( figure )
axes_top = figure.add_subplot(211)
axes_bottom = figure.add_subplot(212)and I want the _top to occupy 4/5 of the png
and the _bottom to occupy the remaining 1/5.Thanks!
Andrew