maskil commited on
Commit
63b3ab5
·
verified ·
1 Parent(s): a392826

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -264,13 +264,14 @@ def create_plot(data, label, reg_p, ai_p, overlap, flip_reg=None, flip_ai=None):
264
  line_color='#2ecc71', line_width=2)
265
 
266
  tag = " ✅ OVERLAP" if overlap else ""
267
- fig.update_layout(title=f"{label}{tag}",
268
  xaxis_title='Drive Amplitude (a.u.)', yaxis_title='Signal (a.u.)',
269
- autosize=True, height=580,
270
- margin=dict(l=60, r=20, t=80, b=60),
271
- legend=dict(orientation='h', x=0.5, y=1.12,
272
- xanchor='center', yanchor='bottom',
273
- bgcolor='rgba(255,255,255,0.8)', borderwidth=1),
 
274
  font=dict(size=13),
275
  xaxis=dict(range=[x.min(), x.max()]),
276
  yaxis=dict(autorange=True),
 
264
  line_color='#2ecc71', line_width=2)
265
 
266
  tag = " ✅ OVERLAP" if overlap else ""
267
+ fig.update_layout(title=dict(text=f"{label}{tag}", x=0.5, xanchor='center'),
268
  xaxis_title='Drive Amplitude (a.u.)', yaxis_title='Signal (a.u.)',
269
+ autosize=True, height=600,
270
+ margin=dict(l=40, r=10, t=50, b=100),
271
+ legend=dict(orientation='h', x=0.5, y=-0.18,
272
+ xanchor='center', yanchor='top',
273
+ bgcolor='rgba(255,255,255,0.8)', borderwidth=1,
274
+ font=dict(size=11)),
275
  font=dict(size=13),
276
  xaxis=dict(range=[x.min(), x.max()]),
277
  yaxis=dict(autorange=True),