'Mapping a 2D array to a 3D graph
I have a 61x61 array in python and I want to make a 3d graph I want the positions of the array to be the x and y values be the x and y axis's themselves to be the z not sure how to do this can anyone help.
x = list(range(0, 61))
y = list(range(0, 61))
X,Y = np.meshgrid(x,y)
fig = plt.figure()
ax = plt.axes(projection='3d')
ax.contour3D(X,Y,Z,50)
Z is a 61x61 array. I get the result.
I have a 61 x 61 numpy array and I want the positions of the array to be the coordinates for x and y and the value of the array to be the Z value e.g Z[[4],[7]] must be x = 7 and y = 4
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

