[Numpy-discussion] creating mesh data from xyz data
Giuseppe Aprea
giuseppe.aprea at gmail.com
Tue Sep 8 10:29:06 EDT 2009
Hi list,
I have some files with data stored in columns:
x1 y1 z1
x2 y2 z2
x3 y3 z3
x4 y4 z4
x5 y5 z5
.......
and I need to make a contour plot of this data using matplotlib. The
problem is that contour plot functions usually handle a different kind
of input:
X=[[x1,x2,x3,x4,x5,x6],
[x1,x2,x3,x4,x5,x6],
[x1,x2,x3,x4,x5,x6],...
Y=[[y1,y1,y1,y1,y1,y1],
[y2,y2,y2,y2,y2,y2],
[y3,y3,y3,y3,y3,y3],.....
Z=[[z1,z2,z3,z4,z5,z6],
[z7,z8,zz9,z10,z11,z12],....
I usually load data using 3 lists: x, y and z; I wonder if there is
any function which is able to take these 3 lists and return the right
inputs for matplotlib functions.
cheers
g
More information about the NumPy-Discussion
mailing list