UCS2014 commited on
Commit
f1da5d0
·
verified ·
1 Parent(s): 409eaad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -13
app.py CHANGED
@@ -269,19 +269,34 @@ def track_plot(df, include_actual=True):
269
  ),
270
  legend_title_text=""
271
  )
272
- fig.update_xaxes(
273
- title_text="<b>UCS (psi)</b>", side="top", range=[xmin, xmax],
274
- ticks="outside", tickformat=",.0f",
275
- tickmode="auto", tick0=tick0,
276
- showline=True, linewidth=1.2, linecolor="#444", mirror=True,
277
- showgrid=True, gridcolor="rgba(0,0,0,0.12)", automargin=True
278
- )
279
- fig.update_yaxes(
280
- title_text=f"<b>{ylab}</b>", range=y_range,
281
- ticks="outside",
282
- showline=True, linewidth=1.2, linecolor="#444", mirror=True,
283
- showgrid=True, gridcolor="rgba(0,0,0,0.12)", automargin=True
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) ----------