complex layouts of plots in matplotlib

Hi all,

i am wondering if there is a way or an interface in matplotlib to
design complex plot layouts. what i mean is something analogous to the
'layout' function of R, where you can say what portion of space each
plot will take. i think this allows for more sophisticated layouts
than the usual square matrix layouts that the 'subplot' function
produces (unless i am missing some other usage of 'subplot').

for example, creating a central square plot with two plots that are
narrower/rectangular on top of the square plot and to the side of it,
as in the example shown here:

http://www.statmethods.net/advgraphs/images/layout4.jpg

The code for that in R can be found here
http://www.statmethods.net/advgraphs/layout.html. is there a way to
do this in matplotlib? ideally i'd like the top and right plots to
just be ordinary plot objects, such that i can change their
axes/labels in the same way that i change normal plots.

thanks.

Hi Per,

The just-released mpl 0.99 contains Jae-Joon Lee's AxesGrid Toolkit
<http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html>
and Andrew Straw's support for axis spines <http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html?highlight=spine>

I think these address both your questions. The list of new features is here:
<http://matplotlib.sourceforge.net/users/whats_new.html#new-in-matplotlib-0-99>

Gary

per freem wrote:

ยทยทยท

Hi all,

i am wondering if there is a way or an interface in matplotlib to
design complex plot layouts. what i mean is something analogous to the
'layout' function of R, where you can say what portion of space each
plot will take. i think this allows for more sophisticated layouts
than the usual square matrix layouts that the 'subplot' function
produces (unless i am missing some other usage of 'subplot').