Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -269,19 +269,34 @@ def track_plot(df, include_actual=True):
|
|
| 269 |
),
|
| 270 |
legend_title_text=""
|
| 271 |
)
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 285 |
return fig
|
| 286 |
|
| 287 |
# ---------- Preview modal (matplotlib) ----------
|
|
|
|
| 269 |
),
|
| 270 |
legend_title_text=""
|
| 271 |
)
|
| 272 |
+
fig.update_xaxes(
|
| 273 |
+
title_text="<b>UCS (psi)</b>",
|
| 274 |
+
title_font=dict(size=16), # ⬅️ increase font size here
|
| 275 |
+
side="top", range=[xmin, xmax],
|
| 276 |
+
ticks="outside", tickformat=",.0f",
|
| 277 |
+
tickmode="auto", tick0=tick0,
|
| 278 |
+
showline=True, linewidth=1.2, linecolor="#444", mirror=True,
|
| 279 |
+
showgrid=True, gridcolor="rgba(0,0,0,0.12)", automargin=True
|
| 280 |
+
)
|
| 281 |
+
|
| 282 |
+
fig.update_yaxes(
|
| 283 |
+
title_text=f"<b>{ylab}</b>",
|
| 284 |
+
title_font=dict(size=16), # ⬅️ increase font size here
|
| 285 |
+
range=y_range,
|
| 286 |
+
ticks="outside",
|
| 287 |
+
showline=True, linewidth=1.2, linecolor="#444", mirror=True,
|
| 288 |
+
showgrid=True, gridcolor="rgba(0,0,0,0.12)", automargin=True
|
| 289 |
+
)
|
| 290 |
+
|
| 291 |
+
# Add a border rectangle to enclose the full figure space
|
| 292 |
+
fig.add_shape(
|
| 293 |
+
type="rect",
|
| 294 |
+
xref="paper", yref="paper",
|
| 295 |
+
x0=0, y0=0, x1=1, y1=1, # full canvas
|
| 296 |
+
line=dict(color="#000", width=1.5),
|
| 297 |
+
layer="below"
|
| 298 |
+
)
|
| 299 |
+
|
| 300 |
return fig
|
| 301 |
|
| 302 |
# ---------- Preview modal (matplotlib) ----------
|