contour and contourf order

So I've got a plot with a contour and a contourf on it. The contour always appears on top of the contourf, no matter what order I issue the commands in; I want to use the contourf to block out part of the contour. ContourSets don't appear to have a zorder. How do I do this?

Jordan

Jordan Dawe wrote:

So I've got a plot with a contour and a contourf on it. The contour always appears on top of the contourf, no matter what order I issue the commands in; I want to use the contourf to block out part of the contour. ContourSets don't appear to have a zorder. How do I do this?

Jordan,

The ContourSet has a collections attribute which is a list of either LineCollection or PolyCollection objects. Each of these is an Artist, and all Artists have zorder, so you should be able to iterate over them and use their set_zorder methods to modify the zorder.

Eric