UCS2014 commited on
Commit
cc2b0eb
·
verified ·
1 Parent(s): c7e04ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -381,7 +381,9 @@ def _x_range_for_tracks(df, cols):
381
  x_series = pd.concat([pd.to_numeric(df[c], errors="coerce") for c in cols if c in df], ignore_index=True)
382
  x_lo, x_hi = float(x_series.min()), float(x_series.max())
383
  pad = 0.03 * (x_hi - x_lo if x_hi > x_lo else 1.0)
384
- xmin, xmax == x_lo - x_pad, x_hi + x_pad = x_lo - pad, x_hi + pad # keep variable names consistent
 
 
385
  tick0 = _nice_tick0(xmin, step=max((xmax - xmin)/10.0, 0.1))
386
  return xmin, xmax, tick0
387
 
 
381
  x_series = pd.concat([pd.to_numeric(df[c], errors="coerce") for c in cols if c in df], ignore_index=True)
382
  x_lo, x_hi = float(x_series.min()), float(x_series.max())
383
  pad = 0.03 * (x_hi - x_lo if x_hi > x_lo else 1.0)
384
+ # Option A: keep name pad
385
+ pad = 0.03 * (x_hi - x_lo if x_hi > x_lo else 1.0)
386
+ xmin, xmax = x_lo - pad, x_hi + pad
387
  tick0 = _nice_tick0(xmin, step=max((xmax - xmin)/10.0, 0.1))
388
  return xmin, xmax, tick0
389