introducing mpl_toolkits.gridspec

Hi,

gridspec is a module that implements matplotlib’s Subplot slightly
differently. Current matplotlib’s Subplot only allows a Subplot to
occupy a single cell of the n x m grid. gridspec enables a Subplot to
occupy multiple cells.

  http://leejjoon.github.com/mpl_toolkits-gridspec/

The code is hosted in the github repo

  http://github.com/leejjoon/mpl_toolkits-gridspec

and the source can be downloaded from

  http://github.com/leejjoon/mpl_toolkits-gridspec/downloads

This is motivated from the discussion in the mailing list a while ago.

http://sourceforge.net/mailarchive/message.php?msg_id=4A0DA94E.1040500%40american.edu

I originally prepared this as a patch for matplotlib
(http://article.gmane.org/gmane.comp.python.matplotlib.general/19097),
but never committed. Instead, it is packaged as a mpl_tookit module.

Regards,

-JJ

Looks interesting, I'll have to take a look when I get a chance. Two
early questions:

1) How does this relate to the functionality present in your axes_grid toolkit?

2) Do you plan on checking this into mpl trunk (still as a mpl_toolkit module)?

Ryan

···

On Tue, May 11, 2010 at 10:57 AM, Jae-Joon Lee <lee.j.joon@...287...> wrote:

gridspec is a module that implements matplotlib’s Subplot slightly
differently. Current matplotlib’s Subplot only allows a Subplot to
occupy a single cell of the n x m grid. gridspec enables a Subplot to
occupy multiple cells.

http://leejjoon.github.com/mpl_toolkits-gridspec/

The code is hosted in the github repo

http://github.com/leejjoon/mpl_toolkits-gridspec

and the source can be downloaded from

http://github.com/leejjoon/mpl_toolkits-gridspec/downloads

This is motivated from the discussion in the mailing list a while ago.

http://sourceforge.net/mailarchive/message.php?msg_id=4A0DA94E.1040500%40american.edu

I originally prepared this as a patch for matplotlib
(http://article.gmane.org/gmane.comp.python.matplotlib.general/19097),
but never committed. Instead, it is packaged as a mpl_tookit module.

--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

1) How does this relate to the functionality present in your axes_grid toolkit?

axes_grid toolkit is more flexible and is mainly meant to work with
axes with images. gridspec is more for normal axes.

As a matter of fact, the multiple axes created by axes_grid toolkit
usually occupies the area of a single subplot. So, to me, axes_grid
toolkit is something that allows me to divide the area of a single
subplot for multiple images, and gridspec is a replacement of the
subplot.

2) Do you plan on checking this into mpl trunk (still as a mpl_toolkit module)?

Not at this moment. But, will consider if there is enough interest.

Regards,

-JJ

···

On Tue, May 11, 2010 at 12:10 PM, Ryan May <rmay31@...287...> wrote:

Yea!

Thanks!
Alan Isaac

···

On 5/11/2010 11:57 AM, Jae-Joon Lee wrote:

   http://leejjoon.github.com/mpl_toolkits-gridspec/

+1

···

Le mardi 11 mai 2010 à 12:39 -0400, Jae-Joon Lee a écrit :

> 2) Do you plan on checking this into mpl trunk (still as a
mpl_toolkit module)?
Not at this moment. But, will consider if there is enough interest.

This looks sufficiently general and useful that we may simply want it
to live in the main tree (not as a toolkit) and have subplot2grd
helper functionality available directly from pyplot.

JDH

···

On Tue, May 11, 2010 at 11:39 AM, Jae-Joon Lee <lee.j.joon@...287...> wrote:

2) Do you plan on checking this into mpl trunk (still as a mpl_toolkit module)?

This is really awesome! Thanks for all the time and hard work, JJ.
-paul

···

-----Original Message-----
From: Jae-Joon Lee [mailto:lee.j.joon@…287…]
Sent: Tuesday, May 11, 2010 8:58 AM
To: Matplotlib Users
Subject: [Matplotlib-users] introducing mpl_toolkits.gridspec

Hi,

gridspec is a module that implements matplotlib’s Subplot slightly
differently. Current matplotlib’s Subplot only allows a Subplot to
occupy a single cell of the n x m grid. gridspec enables a Subplot to
occupy multiple cells.

  http://leejjoon.github.com/mpl_toolkits-gridspec/

Okay.
I'll merge this into the main tree and commit.

Regards,

-JJ

···

On Tue, May 11, 2010 at 1:38 PM, John Hunter <jdh2358@...287...> wrote:

This looks sufficiently general and useful that we may simply want it
to live in the main tree (not as a toolkit) and have subplot2grd
helper functionality available directly from pyplot.

The functionality of the gridspec is now merged into the matplotlib.
The updated documentation can be found in

http://matplotlib.sourceforge.net/trunk-docs/users/gridspec.html

Regards,

-JJ

···

On Tue, May 11, 2010 at 11:57 AM, Jae-Joon Lee <lee.j.joon@...287...> wrote:

Hi,

gridspec is a module that implements matplotlib’s Subplot slightly
differently. Current matplotlib’s Subplot only allows a Subplot to
occupy a single cell of the n x m grid. gridspec enables a Subplot to
occupy multiple cells.

http://leejjoon.github.com/mpl_toolkits-gridspec/

The code is hosted in the github repo

http://github.com/leejjoon/mpl_toolkits-gridspec

and the source can be downloaded from

http://github.com/leejjoon/mpl_toolkits-gridspec/downloads

This is motivated from the discussion in the mailing list a while ago.

http://sourceforge.net/mailarchive/message.php?msg_id=4A0DA94E.1040500%40american.edu

I originally prepared this as a patch for matplotlib
(http://article.gmane.org/gmane.comp.python.matplotlib.general/19097),
but never committed. Instead, it is packaged as a mpl_tookit module.

Regards,

-JJ