[Matplotlib-users] Unequal size gangplots

2010-06-21 Thread Jeremy Conlin
I have followed this excellent example: http://matplotlib.sourceforge.net/examples/pylab_examples/ganged_plots.html but I would like my plots to be 2/3 and 1/3 of the total height of the figure (I only have 2 plots). What do I have to do to specify the relative sizes of the figures? Thanks,

Re: [Matplotlib-users] Unequal size gangplots

2010-06-21 Thread Malte Dik
Jeremy Conlin jlcon...@gmail.com I have followed this excellent example: http://matplotlib.sourceforge.net/examples/pylab_examples/ganged_plots.html but I would like my plots to be 2/3 and 1/3 of the total height of the figure (I only have 2 plots). What do I have to do to specify the

Re: [Matplotlib-users] Unequal size gangplots

2010-06-21 Thread Jeffrey Blackburne
I have used add_axes() to do this in the past. E.g., import matplotlib.pyplot as plt fig = plt.figure() leftmarg = 0.125 # change these numbers to taste botmmarg = 0.125 width = 0.825 height = 0.825 frac = 2./3. ax0 = fig.add_axes([leftmarg, botmmarg, width, frac*height]) ax1 =

Re: [Matplotlib-users] Unequal size gangplots

2010-06-21 Thread Jeremy Conlin
On Mon, Jun 21, 2010 at 2:33 PM, Jeffrey Blackburne je...@mit.edu wrote: I have used add_axes() to do this in the past. E.g., import matplotlib.pyplot as plt fig = plt.figure() leftmarg = 0.125   # change these numbers to taste botmmarg = 0.125 width = 0.825 height = 0.825 frac = 2./3.

Re: [Matplotlib-users] Unequal size gangplots

2010-06-21 Thread Alan G Isaac
You should be able to use http://leejjoon.github.com/mpl_toolkits-gridspec/ for unequal-size plots of the type you describe. Alan Isaac -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day