From: Dirk Z. <dir...@go...> - 2007-09-30 10:53:10
|
Dear all, thanks for your help. this is what I was looking for! Dirk 2007/9/26, Eric Firing <ef...@ha...>: > > David Huard wrote: > > Hi Dirk, > > > > If you haven't already done so, look at the numpy.ma <http://numpy.ma/> > > module. It provides a masked array object that deals gracefully with > > missing values. To the best of my knowledge, most matplotlib functions > > understand masked arrays and deal with it accordingly, exception made of > > those requiring a full matrix (such as contour). Take a look at > > contour handles masked arrays correctly, as far as I know; contourf has > some bugs in its masked array handling, but depending on the type and > distribution of voids, it may still be good enough. > > pcolor and image have no problems with masked arrays. > > Eric > > > examples/image_masked.py. Also, in the Basemap toolkit, there is at > > least one example showing how to plot a masked array on a map. > > > > Cheers, > > > > David > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |