feat: display grid in the plot

This commit is contained in:
2026-02-06 01:53:46 +01:00
parent 47c7e884e5
commit 9dadcdb773

View File

@@ -11,6 +11,9 @@ def plot_expression(
): ):
fig, ax = plt.subplots() fig, ax = plt.subplots()
domain, values = eval_in_range(expression, start, stop, increment) domain, values = eval_in_range(expression, start, stop, increment)
ax.grid(
visible=True, which="both", color="lightgray", linestyle="--", linewidth=0.5
)
ax.plot(domain, values) ax.plot(domain, values)
ax.legend((expression,)) ax.legend((expression,))