|
From: Benjamin R. <ben...@ou...> - 2013-03-04 14:24:18
|
On Sat, Mar 2, 2013 at 6:35 AM, Sudheer Joseph <sud...@ya...>wrote: > Hi Phil, > > Though iris looked to be promising it needed many other libraries, so I > chose the below suggestion. But is there a way to overlay contours on this > ? also is it possible to specify the levels? > In [23]: plt.pcolormesh?? did not give much help > with best regards, > Sudheer > You can overlay contours on the pcolormesh image by simply using the plt.contour() function after the pcolormesh() call. It allows you to control which levels to contour and you can specify the attributes of those contours like the color or thickness. Note that unlike Matlab, you don't have to call "hold on" between plots. By default, matplotlib will hold. I hope that helps! Ben Root |