I cannot find a clear explanation of the X, Y, and Z arguments to Matplotlib's plot_wireframe function. I have been playing with their provided example wire3d_demo.py but I don't get why X, Y, and Z are two dimensional arrays. It is a pretty curved 3D picture but if you look at the X, Y, and Z arrays they are all size 120 by 120 2D arrays. Matplotlib's documentation has this terse description: "Data values". Can anyone elaborate on that a little bit? I like Matplotlib but its documentation can be a little sparse.
Updating the question based on the answer. Maybe the first dimension of the 2D array represents a line in 3D space and the wireframe is constructed to connect up all of the lines. In this example I draw two quarter circles in the x,y plane with z coordinates 1.0 apart:
temp_x = []
temp_y = []
temp_z1 = []
temp_z2 =[]
import math
# x^2+y^2=4
for i in range(201):
x = 0.01 * i
temp_x.append(x)
y = math.sqrt(4-(x*x))
temp_y.append(y)
temp_z1.append(0.0)
temp_z2.append(1.0)
X=np.array([temp_x,temp_x])
Y=np.array([temp_y,temp_y])
Z=np.array([temp_z1,temp_z2])
# Plot a basic wireframe.
ax.plot_wireframe(X, Y, Z)
I guess the first dimension is line number or maybe function number and the second is point number.