You may do this without creating an extra axes (ax0). Try something like ax4.plot([0.5, 0.5], [0, 1], color='lightgreen', lw=5, transform=gcf().transFigure, clip_on=False)
Regards, -JJ On Fri, Apr 30, 2010 at 3:56 AM, Matthias Michler <matthiasmich...@gmx.net> wrote: > On Wednesday 28 April 2010 15:07:21 Maxime Bois wrote: >> Hi all, >> >> I have created a figure with 4 subplots (2x2) and I want to separate >> them with a vertical and horizontal lines (see the green lines on my >> figure edited by Gimp) but I don't know if it's possible (I haven't find >> any example of that). >> >> I am using Python 2.5.4 and matplotlib version 0.99.0 >> >> Thanks, >> Maxime > > Hi Maxime, > > I hope my example works for you. Please note: I used plt.axes instead of > plt.subplot, although both generate an Axes instance, the latter doesn't > support overlapping axes. > > Kind regards, > Matthias > > ------------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users