Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -138,10 +138,11 @@ def plot_tsne(tech_filter, snr_filter, mod_filter, mob_filter, representation, c
|
|
| 138 |
hover_data=['tech', 'snr', 'mod', 'mob'],
|
| 139 |
title=f"t-SNE of {representation} ({len(filtered_df)} samples)",
|
| 140 |
template="plotly_white",
|
| 141 |
-
render_mode="
|
|
|
|
| 142 |
)
|
| 143 |
fig.update_layout(legend_title_text=color_by.capitalize(), margin=dict(l=40, r=20, t=60, b=40))
|
| 144 |
-
fig.update_traces(mode='markers', marker=dict(size=
|
| 145 |
fig.update_xaxes(range=[x_min - x_pad, x_max + x_pad], zeroline=False)
|
| 146 |
fig.update_yaxes(range=[y_min - y_pad, y_max + y_pad], zeroline=False)
|
| 147 |
|
|
|
|
| 138 |
hover_data=['tech', 'snr', 'mod', 'mob'],
|
| 139 |
title=f"t-SNE of {representation} ({len(filtered_df)} samples)",
|
| 140 |
template="plotly_white",
|
| 141 |
+
render_mode="auto",
|
| 142 |
+
color_discrete_sequence=px.colors.qualitative.Set2 + px.colors.qualitative.Set3,
|
| 143 |
)
|
| 144 |
fig.update_layout(legend_title_text=color_by.capitalize(), margin=dict(l=40, r=20, t=60, b=40))
|
| 145 |
+
fig.update_traces(mode='markers', marker=dict(size=8, opacity=0.9, line=dict(width=0)))
|
| 146 |
fig.update_xaxes(range=[x_min - x_pad, x_max + x_pad], zeroline=False)
|
| 147 |
fig.update_yaxes(range=[y_min - y_pad, y_max + y_pad], zeroline=False)
|
| 148 |
|