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 zorder of the objects to the order you want. However, there is no set_zorder for the whole contour, rather just for each element in the collection. Observe: 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 I guess the advantage is that you could pick and choose which contours to expose: for l in pcf.collections[::2]: l.set_zorder(-1000) draw() # woven contours and contourfs... -Rob ---- Rob Hetland, Associate Professor Dept. of Oceanography, Texas A&M University http://pong.tamu.edu/~rob phone: 979-458-0096, fax: 979-845-6331 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users