From: Eric F. <ef...@ha...> - 2009-03-17 07:07:02
|
Jouni K. Seppänen wrote: > Pablo Romero <rom...@ho...> writes: > >> How can I go about correcting this, so that the 'basemap.contour()' >> function draws the contours BEFORE drawing the coastlines & filled >> continents? > > Use appropriate zorder arguments in your method calls: > > http://matplotlib.sourceforge.net/examples/pylab_examples/zorder_demo.html > Contour does not pass on the zorder argument, so you need to do something like this: CS = contour(x,y,z, levs) for c in CS.collections: c.set_zorder(0.5) # less than patch, which is 1.0 Eric |