wi-lab commited on
Commit
62da1db
·
1 Parent(s): 6ef16ed

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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="webgl",
 
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=6, opacity=0.8, line=dict(width=0)))
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