import numpy as np import matplotlib.pyplot as plt # ── Parameters ───────────────────────────────────────────────────────────── seed = 2905 n_points = 165 # ── Data ──────────────────────────────────────────────────────────────────── x = np.linspace(0.0, 2.0 * np.pi, n_points) y0 = 0.607619 * np.sin(1.667818 * x + 6.143726) y1 = 1.205378 * np.sin(1.973711 * x + 0.172039) y2 = 1.652390 * np.sin(2.122295 * x + 0.591268) # ── Plot ──────────────────────────────────────────────────────────────────── fig, ax = plt.subplots(figsize=(7, 4)) ax.plot(x, y0, color="tab:blue", label="A=0.61, f=1.67, φ=6.14") ax.plot(x, y1, color="tab:orange", label="A=1.21, f=1.97, φ=0.17") ax.plot(x, y2, color="tab:green", label="A=1.65, f=2.12, φ=0.59") ax.set_xlabel("x") ax.set_ylabel("y") ax.set_title("Sinusoidal Line Plot (3 curve(s))") ax.legend(fontsize=8) ax.grid(True, alpha=0.3) fig.tight_layout() plt.show()