Plotting *lists of data* instead of *functions*...

The examples on the screenshots page are great and very helpful.
I hope to never use any other plotting app again except Matplotlib.

What is easiest/cleanest way to modify examples to accept
precalculated /data/ rather than use a mathematical /function/???

e.g.

x = arange(xmin, xmax, dx)
y = arange(ymin, ymax, dy)
X,Y = meshgrid(x, y)
Z = my_function(X, Y)
im = imshow(Z, extent=(xmin, xmax, ymin, ymax))

How supply "Z" data myself rather than define my_function for Z?

···

====================

Also,

plot(t, my_function(t))

Same question here for this 2D plot. (I have the 2D data already calculated.)

thanks!

Chris

--
_______________________________________

Christian Seberino, Ph.D.
SPAWAR Systems Center San Diego
Code 2872
49258 Mills Street, Room 158
San Diego, CA 92152-5385
U.S.A.

Phone: (619) 553-9973
Fax : (619) 553-6521
Email: seberino@...391...
_______________________________________

You have asked a _huge_ question. What format are these data in? ASCII
files? HDF files? FITS images? JPEG images?

···

On Wed, 2004-11-10 at 10:06 -0800, seberino@...391... wrote:

The examples on the screenshots page are great and very helpful.
I hope to never use any other plotting app again except Matplotlib.

What is easiest/cleanest way to modify examples to accept
precalculated /data/ rather than use a mathematical /function/???

--
Stephen Walton, Professor of Physics and Astronomy,
California State University, Northridge
stephen.walton@...267...

Stephen

Thanks for the help.
The format of the data is ASCII files and/or Python arrays
that contain (x, y) coordinates or (x, y, z) coordinates for 3D.

For starters, what is best way to plot triples in this list?...

[ (0, 0, 3.3), (0, 1, 4.4), (1, 0, 2.2), (1, 1, 2.34)]

I want to duplicate color plot on screenshots page:
  http://matplotlib.sourceforge.net/screenshots/pcolor_demo_large.png

Chris

···

On Wed, Nov 10, 2004 at 12:21:00PM -0800, Stephen Walton wrote:

On Wed, 2004-11-10 at 10:06 -0800, seberino@...391... wrote:
> The examples on the screenshots page are great and very helpful.
> I hope to never use any other plotting app again except Matplotlib.
>
> What is easiest/cleanest way to modify examples to accept
> precalculated /data/ rather than use a mathematical /function/???

You have asked a _huge_ question. What format are these data in? ASCII
files? HDF files? FITS images? JPEG images?

--
Stephen Walton, Professor of Physics and Astronomy,
California State University, Northridge
stephen.walton@...267...

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
_______________________________________

Christian Seberino, Ph.D.
SPAWAR Systems Center San Diego
Code 2872
49258 Mills Street, Room 158
San Diego, CA 92152-5385
U.S.A.

Phone: (619) 553-9973
Fax : (619) 553-6521
Email: seberino@...391...
_______________________________________