namruto77's picture
Upload VeriRender benchmark dataset
d323f57 verified
Raw
History Blame Contribute Delete
1.32 kB
import numpy as np
import matplotlib.pyplot as plt
# ── Parameters ─────────────────────────────────────────────────────────────
seed = 2909
n_points = 127
# ── Data ────────────────────────────────────────────────────────────────────
x = np.linspace(0.0, 2.0 * np.pi, n_points)
y0 = 1.044005 * np.sin(1.288522 * x + 3.606051)
y1 = 0.548443 * np.sin(2.583436 * x + 2.986435)
y2 = 1.236664 * np.sin(1.559843 * x + 5.118033)
# ── Plot ────────────────────────────────────────────────────────────────────
fig, ax = plt.subplots(figsize=(7, 4))
ax.plot(x, y0, color="tab:blue", label="A=1.04, f=1.29, φ=3.61")
ax.plot(x, y1, color="tab:orange", label="A=0.55, f=2.58, φ=2.99")
ax.plot(x, y2, color="tab:green", label="A=1.24, f=1.56, φ=5.12")
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()