matplotlib - representation of nan values in 2D
![](https://secure.gravatar.com/avatar/99ad8ecbbcba7674478b8ba17f77de3d.jpg?s=120&d=mm&r=g)
Dear pylab group, for the represenation of 2d measurement data I use the contourplot function from matplotlib. Some points in this map are not measurabel, therefore I get a non numerical value (nan) output.
My questions are: (1) How can I make use of plotting data with NAN values as contour and asigns such values eg as black points? (2) How can I use the matplotlib hist() function with this data, that also include such missing data points? Maybe there is an easy workaround for this. Thanks a lot for your support, Dirk (python2.51/matplotlib-0.90.1, win32) my code: ... import matplotlib ... my2dData=[[1,2,3,4,5.0 ,NaN,7,8,9,10],[10,9,8,7,6,5,4,3,2,1]] ... figure(1) imshow(my2dData) pylab.show() ..
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
Dirk Zickermann wrote:
Dear pylab group,
Sorry, this isn't the matplotlib mailing list. You want this one: https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
Dirk Zickermann wrote:
Dear pylab group,
Sorry, this isn't the matplotlib mailing list. You want this one: https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
participants (2)
-
Dirk Zickermann
-
Robert Kern