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 = 2901
n_points = 145
# ── Data ────────────────────────────────────────────────────────────────────
x = np.linspace(0.0, 2.0 * np.pi, n_points)
y0 = 1.155640 * np.sin(1.302779 * x + 4.981734)
y1 = 0.911540 * np.sin(2.947745 * x + 2.938028)
y2 = 0.859045 * np.sin(1.454283 * x + 4.031508)
# ── Plot ────────────────────────────────────────────────────────────────────
fig, ax = plt.subplots(figsize=(7, 4))
ax.plot(x, y0, color="tab:blue", label="A=1.16, f=1.30, φ=4.98")
ax.plot(x, y1, color="tab:orange", label="A=0.91, f=2.95, φ=2.94")
ax.plot(x, y2, color="tab:green", label="A=0.86, f=1.45, φ=4.03")
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()