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

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 worked great. Thanks.

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 in

Re: [Matplotlib-users] plot order

2008-01-23 Thread Rob Hetland
On Jan 24, 2008, at 8:11 AM, Jordan Dawe wrote: However, when I do this the result is the two contour plots are drawn on top of the contourf plots no matter what. How do I hide the contours under a contourf? zorder. It won't really matter what order you plot, as long as you set the