import numpy as np import matplotlib.pyplot as plt # ── Parameters ───────────────────────────────────────────────────────────── seed = 2907 n_points = 85 # ── Data ──────────────────────────────────────────────────────────────────── x = np.linspace(0.0, 2.0 * np.pi, n_points) y0 = 1.032634 * np.sin(2.206059 * x + 2.518333) # ── Plot ──────────────────────────────────────────────────────────────────── fig, ax = plt.subplots(figsize=(7, 4)) ax.plot(x, y0, color="tab:blue", label="A=1.03, f=2.21, φ=2.52") ax.set_xlabel("x") ax.set_ylabel("y") ax.set_title("Sinusoidal Line Plot (1 curve(s))") ax.legend(fontsize=8) ax.grid(True, alpha=0.3) fig.tight_layout() plt.show()