Spaces:
Runtime error
Runtime error
jens commited on
Commit ·
a71e487
1
Parent(s): ec37504
fix
Browse files
utils.py
CHANGED
|
@@ -177,9 +177,9 @@ def PCL3(image):
|
|
| 177 |
sizes = np.zeros(colors.shape)
|
| 178 |
sizes[:] = 0.01
|
| 179 |
#ax = Axes3D(fig)
|
| 180 |
-
data = {'x': points[:, 0], 'y': points[:, 1], 'z': points[:, 2], 'sizes': sizes
|
| 181 |
df = pd.DataFrame(data)
|
| 182 |
# Step 6: Create a 3D scatter plot using Plotly Express
|
| 183 |
-
fig = px.scatter_3d(df, x='x', y='y', z='z', color=
|
| 184 |
|
| 185 |
return fig
|
|
|
|
| 177 |
sizes = np.zeros(colors.shape)
|
| 178 |
sizes[:] = 0.01
|
| 179 |
#ax = Axes3D(fig)
|
| 180 |
+
data = {'x': points[:, 0], 'y': points[:, 1], 'z': points[:, 2], 'sizes': sizes}
|
| 181 |
df = pd.DataFrame(data)
|
| 182 |
# Step 6: Create a 3D scatter plot using Plotly Express
|
| 183 |
+
fig = px.scatter_3d(df, x='x', y='y', z='z', color=colors, size="sizes")
|
| 184 |
|
| 185 |
return fig
|