huntrezz commited on
Commit
edd526e
·
verified ·
1 Parent(s): edd2a5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=90, elev=0) # Rotate the view to face forward
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