数据是三个列向量,x,y,z;
x,y表示平面的xy坐标,z对应于该坐标下的值。
x,y,z
0.15,0.04, 295.14
0.14,0.11, 294.99
0.14,0.10, 294.99
0.08,0.06, 295.65
0.09,0.13, 295.15
0.12,0.15, 294.82
0.12,0.16, 294.63
0.00,0.09, 295.72
0.13,0.17, 294.44
0.03,0.09, 295.70
0.10,0.19, 294.54
0.11,0.19, 294.44
0.11,0.08, 295.36
0.04,0.18, 294.81
0.04,0.11, 295.54
0.02,0.23, 294.32
0.07,0.11, 295.42
三列这样的数据,origin里很好作出等值线图并涂色(contour map)。
数据是(x1,y1,z1)一一对应的,但是 matplotlib.pyplot.contourf 需要输入的都是矩阵,即需要(x1,y1,z1),(x1,y2, ),(x1,y3, )...(x1,yn,zn),X,Y可以用meshgrid生成,不知这类数据如何实现matplotlib.pyplot.contourf所需的Z的二维矩阵。
--
FROM 111.204.164.*