We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 150ff1c commit dd6e851Copy full SHA for dd6e851
pythreejs/pythreejs.py
@@ -78,7 +78,7 @@ def _update_surface(self):
78
x = np.linspace(-self.width/2, self.width/2, nx)
79
y = np.linspace(-self.height/2, self.height/2, ny)
80
xx, yy = np.meshgrid(x, y)
81
- z = np.array(self.z).reshape((nx, ny))
+ z = np.array(self.z).reshape(xx.shape)
82
83
positions = np.dstack((xx, yy, z)).reshape(nx * ny, 3).astype(np.float32)
84
0 commit comments