feat: display grid in the plot
This commit is contained in:
@@ -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,))
|
||||||
|
|||||||
Reference in New Issue
Block a user