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


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to