Noob confusion: Pcolor

Tue, 10 Nov 2009 23:45:10 -0800, shriv wrote:

I am a very new user to both python and matplotlib so please beware that
my questions might be a real no-brainer. Here goes: I have a 3D array of
data that I isolated from a much larger dataset. The first two columns
are the x and y positions while the third is the intensity at the
position (xi, yi). I would like to produce a colour map of the intensity
as a function of x and y positions. Numerous tries with pcolor have got
me nowhere. I constantly get an error message saying "Too many indices".

You need to regrid your data on a regular grid, not at scattered
positions. See

http://matplotlib.sourceforge.net/api/mlab_api.html#matplotlib.mlab.griddata

ยทยทยท

--
Pauli Virtanen