jens commited on
Commit
7166941
·
1 Parent(s): f8b3205
Files changed (1) hide show
  1. utils.py +4 -1
utils.py CHANGED
@@ -178,8 +178,11 @@ def PCL3(image):
178
  sizes[:] = 0.01
179
  colors = [tuple(c) for c in colors]
180
  fig = plt.figure()
181
- ax = fig.add_subplot(111, projection='3d')
 
 
182
  ax.scatter(points[:, 0], points[:, 1], points[:, 2], c=colors, s=0.01)
 
183
  #data = {'x': points[:, 0], 'y': points[:, 1], 'z': points[:, 2], 'sizes': sizes[:, 0]}
184
  #df = pd.DataFrame(data)
185
  # Step 6: Create a 3D scatter plot using Plotly Express
 
178
  sizes[:] = 0.01
179
  colors = [tuple(c) for c in colors]
180
  fig = plt.figure()
181
+ #ax = fig.add_subplot(111, projection='3d')
182
+ ax = Axes3D(fig)
183
+ print("plotting...")
184
  ax.scatter(points[:, 0], points[:, 1], points[:, 2], c=colors, s=0.01)
185
+ print("Plot Succesful")
186
  #data = {'x': points[:, 0], 'y': points[:, 1], 'z': points[:, 2], 'sizes': sizes[:, 0]}
187
  #df = pd.DataFrame(data)
188
  # Step 6: Create a 3D scatter plot using Plotly Express