Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def plot_depth_map(depth_map):
|
|
46 |
ax = fig.add_subplot(111, projection='3d')
|
47 |
x, y = np.meshgrid(range(depth_map.shape[1]), range(depth_map.shape[0]))
|
48 |
ax.plot_surface(x, y, depth_map, cmap='viridis')
|
49 |
-
ax.view_init(azim=
|
50 |
ax.set_zlim(0, 1)
|
51 |
plt.close(fig)
|
52 |
return fig
|
|
|
46 |
ax = fig.add_subplot(111, projection='3d')
|
47 |
x, y = np.meshgrid(range(depth_map.shape[1]), range(depth_map.shape[0]))
|
48 |
ax.plot_surface(x, y, depth_map, cmap='viridis')
|
49 |
+
ax.view_init(azim=180, elev=0) # Rotate the view forward and clockwise
|
50 |
ax.set_zlim(0, 1)
|
51 |
plt.close(fig)
|
52 |
return fig
|