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 ------------------------------------------------------------------------------ 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