Re: [Matplotlib-users] plot order

2008-01-24 Thread Jordan Dawe
Eric Firing wrote: > > Maybe contour, contourf, and any similar plotting commands that do not > support zorder as a kwarg should do so? I am not sure if this is > needed often enough to warrant the extra code and documentation. I can't speak for other people, but I use this kind of functionality

Re: [Matplotlib-users] plot order

2008-01-24 Thread Eric Firing
Jordan Dawe wrote: >> pc = contour(random.rand(10,10)) >> pcf = contourf(random.rand(10,10), cmap=cm.gray) >> # now the contours are on top >> >> for l in pc.collections: >> l.set_zorder(-100) >> >> draw() >> # now the contours are on the bottom > > Well, that's certainly kludgey, but it worke

Re: [Matplotlib-users] plot order

2008-01-24 Thread Jordan Dawe
> > pc = contour(random.rand(10,10)) > pcf = contourf(random.rand(10,10), cmap=cm.gray) > # now the contours are on top > > for l in pc.collections: > l.set_zorder(-100) > > draw() > # now the contours are on the bottom Well, that's certainly kludgey, but it worked great. Thanks. Jordan ---

[Matplotlib-users] title when using subplot

2008-01-24 Thread Tommy Grav
I have a plot that is divided into four subplots. pylab.figure() pylab.subplot(221) pylab.plot(a,b,"k-") pylab.subplot(222) pylab.plot(a,b,"k-") pylab.subplot(223) pylab.plot(a,b,"k-") pylab.subplot(224) pylab.plot(a,b,"k-") I would like to add a title to the entire plot, but pylab.title() only a