|
From: Jae-Joon L. <lee...@gm...> - 2010-10-25 02:05:48
|
On Mon, Oct 25, 2010 at 3:14 AM, Nikolaus Rath <Nik...@ra...> wrote: > I would like to create subplots with different sizes using the object > oriented API. However, it seems that the subplot2grid() method exists > only in pyplot, but not as a Figure instance method. Am I looking in the > wrong place? How do I use subplot2grid with an existing Figure object? > http://matplotlib.sourceforge.net/users/gridspec.html#gridspec-and-subplotspec You can use gridspec instances w/ the add_subplot method of figures. gs = gridspec.GridSpec(2, 2) ax = fig.add_subplot(gs[0, 0]) Regards, -JJ |