import numpy as np import matplotlib.pyplot as plt # ── Parameters ───────────────────────────────────────────────────────────── seed = 2900 n_points = 161 # ── Data ──────────────────────────────────────────────────────────────────── x = np.linspace(0.0, 2.0 * np.pi, n_points) y0 = 0.831950 * np.sin(1.118913 * x + 1.008837) y1 = 1.338358 * np.sin(0.932295 * x + 2.234393) # ── Plot ──────────────────────────────────────────────────────────────────── fig, ax = plt.subplots(figsize=(7, 4)) ax.plot(x, y0, color="tab:blue", label="A=0.83, f=1.12, φ=1.01") ax.plot(x, y1, color="tab:orange", label="A=1.34, f=0.93, φ=2.23") ax.set_xlabel("x") ax.set_ylabel("y") ax.set_title("Sinusoidal Line Plot (2 curve(s))") ax.legend(fontsize=8) ax.grid(True, alpha=0.3) fig.tight_layout() plt.show()