Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
b626410
1
Parent(s):
3d375df
make 'days til crossover' more visible
Browse files
app.py
CHANGED
@@ -194,13 +194,20 @@ def build_plot(toggle_annotations, filtered_df):
|
|
194 |
# add annotation with number of models and days til crossover
|
195 |
fig.add_annotation(
|
196 |
xref="paper",
|
197 |
-
yref="paper",
|
198 |
-
x
|
199 |
y=1.13,
|
200 |
-
text=
|
|
|
|
|
|
|
201 |
showarrow=False,
|
202 |
-
font=dict(size=
|
203 |
-
bgcolor="rgba(0,0,0,0.
|
|
|
|
|
|
|
|
|
204 |
)
|
205 |
|
206 |
if toggle_annotations:
|
|
|
194 |
# add annotation with number of models and days til crossover
|
195 |
fig.add_annotation(
|
196 |
xref="paper",
|
197 |
+
yref="paper",
|
198 |
+
x=0.01,
|
199 |
y=1.13,
|
200 |
+
text=(
|
201 |
+
f"<b>Number of models:</b> {len(filtered_df)}<br>"
|
202 |
+
f"<b>Days until crossover:</b> {days_til_crossover}"
|
203 |
+
),
|
204 |
showarrow=False,
|
205 |
+
font=dict(size=16, color="white"), # Increased font size
|
206 |
+
bgcolor="rgba(0,0,0,0.7)", # Darker background for better contrast
|
207 |
+
bordercolor="rgba(255,255,255,0.3)", # Light border
|
208 |
+
borderwidth=2,
|
209 |
+
borderpad=8, # More padding
|
210 |
+
align="left",
|
211 |
)
|
212 |
|
213 |
if toggle_annotations:
|