Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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=
|
| 270 |
-
margin=dict(l=
|
| 271 |
-
legend=dict(orientation='h', x=0.5, y=
|
| 272 |
-
xanchor='center', yanchor='
|
| 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),
|