Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Hide label in the size vs. score graph by default
Browse files
app.py
CHANGED
@@ -290,6 +290,7 @@ def plot_size_vs_score(df_filtered: pd.DataFrame) -> go.Figure:
|
|
290 |
fig.update_traces(
|
291 |
hovertemplate="<b>%{customdata[0]}</b><br>#Params: %{x:.2f}B<br>n-shot: %{customdata[1]}<br>%{customdata[2]}: %{y:.4f}<extra></extra>",
|
292 |
textposition="top right",
|
|
|
293 |
)
|
294 |
for trace in fig.data:
|
295 |
if trace.name != "AVG":
|
@@ -302,8 +303,8 @@ def plot_size_vs_score(df_filtered: pd.DataFrame) -> go.Figure:
|
|
302 |
direction="left",
|
303 |
showactive=True,
|
304 |
buttons=[
|
305 |
-
dict(label="Show Labels", method="update", args=[{"mode": ["markers+text"]}]),
|
306 |
dict(label="Hide Labels", method="update", args=[{"mode": ["markers"]}]),
|
|
|
307 |
],
|
308 |
x=0.5,
|
309 |
y=-0.2,
|
|
|
290 |
fig.update_traces(
|
291 |
hovertemplate="<b>%{customdata[0]}</b><br>#Params: %{x:.2f}B<br>n-shot: %{customdata[1]}<br>%{customdata[2]}: %{y:.4f}<extra></extra>",
|
292 |
textposition="top right",
|
293 |
+
mode="markers",
|
294 |
)
|
295 |
for trace in fig.data:
|
296 |
if trace.name != "AVG":
|
|
|
303 |
direction="left",
|
304 |
showactive=True,
|
305 |
buttons=[
|
|
|
306 |
dict(label="Hide Labels", method="update", args=[{"mode": ["markers"]}]),
|
307 |
+
dict(label="Show Labels", method="update", args=[{"mode": ["markers+text"]}]),
|
308 |
],
|
309 |
x=0.5,
|
310 |
y=-0.2,
|