有人知道模块 fillplots ( http://fillplots.readthedocs.org ) 吗?我已经成功安装了它,但是当我从 http://fillplots.readthedocs.org/en/latest/examples.html 运行一些简单代码时
from fillplots import plot_regions
plotter = plot_regions([
[(lambda x: x ** 2,), # x ^ 2 > 0 and
(lambda x: x + 5,)], # x + 5 > 0
])
没有任何反应。我怎么能看到那张图?包的文档很差,我不知道我还应该做什么。有没有其他方法可以绘制给定不等式系统的解的区域?
请您参考如下方法:
如果你事先导入了pyplot
import matplotlib.pyplot as plt
然后在你调用 plotter 之后你可以做
plt.show()
情节将显示。
