Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ elif len(labels) == mesh.n_cells:
|
|
| 27 |
|
| 28 |
# Create a pyvista plotter
|
| 29 |
plotter = pv.Plotter()
|
| 30 |
-
|
| 31 |
cmap = plt.cm.get_cmap('tab20', n_clusters) # Using a colormap with sufficient distinct colors
|
| 32 |
|
| 33 |
colors = cmap(np.linspace(0, 1, n_clusters)) # Generate colors
|
|
|
|
| 27 |
|
| 28 |
# Create a pyvista plotter
|
| 29 |
plotter = pv.Plotter()
|
| 30 |
+
n_clusters = 17
|
| 31 |
cmap = plt.cm.get_cmap('tab20', n_clusters) # Using a colormap with sufficient distinct colors
|
| 32 |
|
| 33 |
colors = cmap(np.linspace(0, 1, n_clusters)) # Generate colors
|