colormap plot

Hello, I have a really dummy question.

I would like to plot an x, y, z table so that each region of the plot
area defined by the coordinates (x, y) corresponds a color given by the
value of z. I suppose this is a kind of basic functionality, but I'm
unable to find the right function into matplotlib API.

Thank you. Cheers,

···

--
Daniele

You probably want imshow, pcolor, pcolormash or matshow

http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.imshow
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.pcolor
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.pcolormesh
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.matshow

There's a basic example of using imshow here:

http://matplotlib.sourceforge.net/examples/pylab_examples/image_demo.html

Cheers,
Scott

···

On 5 November 2010 13:33, Daniele Nicolodi <daniele@...3138...> wrote:

I would like to plot an x, y, z table so that each region of the plot
area defined by the coordinates (x, y) corresponds a color given by the
value of z. I suppose this is a kind of basic functionality, but I'm
unable to find the right function into matplotlib API.

I meant pcolormesh...

···

On 5 November 2010 14:05, Scott Sinclair <scott.sinclair.za@...287...> wrote:

You probably want imshow, pcolor, pcolormash or matshow

Hi, for 2d you can use basic contourf of maptplotlib, or 3d with
contourf3D(X,Y,Z) by using the mplot3d tookit.

see tutorial :

2d :

http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.contourf

3d :
http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/tutorial.html

Daniele Nicolodi wrote:

···

Hello, I have a really dummy question.

I would like to plot an x, y, z table so that each region of the plot
area defined by the coordinates (x, y) corresponds a color given by the
value of z. I suppose this is a kind of basic functionality, but I'm
unable to find the right function into matplotlib API.

Thank you. Cheers,
--
Daniele

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
View this message in context: http://old.nabble.com/colormap-plot-tp30140282p30189782.html
Sent from the matplotlib - users mailing list archive at Nabble.com.