0
我有代表在3D空間中的線兩條numpy的陣列(注意Python中,兩條曲線之間的表面,matplotlib
# this represents line 1
x1 = [1,2,3]
y1 = [1,4,4]
z1 = [1,1,1]
# this represents line 2
x2 = [1,2,3,4]
y2 = [1,4,5,7]
z2 = [10,10,10]
# Notice that the array representing line 1 and the array representing line 2 have different sizes
# I am currently plotting the aforementioned '3D' lines as follows
ax.plot(x1,y1,z1)
ax.plot(x2,y2,z2)
我想繪製連接在3D這行得到這樣的表面:
我怎樣才能做到這一點使用matplotlib的python?
謝謝!