On Mon, Oct 25, 2010 at 3:14 AM, Nikolaus Rath <nikol...@rath.org> 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

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to