Hello,
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?
Thanks,
-Nikolaus
···
--
»Time flies like an arrow, fruit flies like a Banana.«
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
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
···
On Mon, Oct 25, 2010 at 3:14 AM, Nikolaus Rath <Nikolaus@...3072...> 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?