Sympy - 改变绘图的 y 轴范围

Sympy - altering the range of the y axis for a plot

如何使用 Sympy 设置 y 轴的范围?

plot((x**2 + 2))

我想要这个,以便 y 轴从 0 到 7

绘图时,您可以使用 kwargs xlimylim 来设置轴限制。

例如:

>>> plot((x**2 + 2), xlim=[-3,3], ylim=[0,7])