Skip to content

Commit 360f8cb

Browse files
committed
Let curvefit runtime plot autoscale y-axis
1 parent 04dce60 commit 360f8cb

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

examples/curvefit/figs.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -412,15 +412,7 @@ def save_inference_scaling_viz(
412412
ax1.set_xscale("log")
413413
ax1.set_xlim(8, 1200000)
414414

415-
y_min = float(np.min(runtime_array - runtime_std_array))
416-
y_max = float(np.max(runtime_array + runtime_std_array))
417-
if not np.isfinite(y_min):
418-
y_min = float(np.min(runtime_array))
419-
if not np.isfinite(y_max):
420-
y_max = float(np.max(runtime_array))
421-
y_range = max(1e-6, y_max - y_min)
422-
padding = 0.1 * y_range
423-
ax1.set_ylim(max(1e-6, y_min - padding), y_max + padding)
415+
# Let Matplotlib pick y-limits automatically so spikes don't crush the rest of the curve.
424416

425417
# Add GPU behavior annotations
426418
ax1.axvspan(100000, 1200000, alpha=0.1, color="orange", label="GPU Throttling")

0 commit comments

Comments
 (0)