From 9dadcdb7737a75ffcd9eee613dc16abcaeceae2b Mon Sep 17 00:00:00 2001 From: Domenico Testa Date: Fri, 6 Feb 2026 01:53:46 +0100 Subject: [PATCH] feat: display grid in the plot --- src/plotter/matplotlib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plotter/matplotlib.py b/src/plotter/matplotlib.py index b438d48..3c11ad8 100644 --- a/src/plotter/matplotlib.py +++ b/src/plotter/matplotlib.py @@ -11,6 +11,9 @@ def plot_expression( ): fig, ax = plt.subplots() 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.legend((expression,))