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 = 2906
n_points = 115
# ── Data ────────────────────────────────────────────────────────────────────
x = np.linspace(0.0, 2.0 * np.pi, n_points)
y0 = 0.617971 * np.sin(1.020470 * x + 0.512607)
y1 = 0.790376 * np.sin(0.861338 * x + 0.057956)
y2 = 1.269849 * np.sin(1.617446 * x + 5.271811)
# ── Plot ────────────────────────────────────────────────────────────────────
fig, ax = plt.subplots(figsize=(7, 4))
ax.plot(x, y0, color="tab:blue", label="A=0.62, f=1.02, φ=0.51")
ax.plot(x, y1, color="tab:orange", label="A=0.79, f=0.86, φ=0.06")
ax.plot(x, y2, color="tab:green", label="A=1.27, f=1.62, φ=5.27")
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()