andrewrreed HF staff commited on
Commit
b626410
·
1 Parent(s): 3d375df

make 'days til crossover' more visible

Browse files
Files changed (1) hide show
  1. app.py +12 -5
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", # use paper coordinates
198
- x=-0.05,
199
  y=1.13,
200
- text=f"Number of models: {len(filtered_df)}<br>Days til crossover: {days_til_crossover}",
 
 
 
201
  showarrow=False,
202
- font=dict(size=14, color="white"),
203
- bgcolor="rgba(0,0,0,0.5)",
 
 
 
 
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: