Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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 |
|