From: Christian M. <mee...@im...> - 2009-08-27 10:30:15
|
Hi, I have a 2D masked array, created like: import numpy as np data = np.ma.array(data, mask=[data == 'NA']) which I would like to plot as a heatmap. import pylab pylab.pcolor(data) or pylab.pcolormesh(data) Well, it works with any array, but not if masked values are in there. Can somebody supply me with a snippet, as I apparently don't get the relevant piece in the docs (or did not find it ;-) ). TIA Christian |