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.
The code is hosted in the github repo
and the source can be downloaded from
This is motivated from the discussion in the mailing list a while ago.
I originally prepared this as a patch for matplotlib
but never committed. Instead, it is packaged as a mpl_tookit module.