在IPython中,使用pyplot.show()命令时我的绘图不显示。
- 论坛
- 在IPython中,使用pyplot.show()命令时我的绘图不显示。
27 浏览
在IPython中,使用pyplot.show()命令时我的绘图不显示。
我需要帮助在IPython中显示matplotlib的图表。我没有忘记调用pyplot.show()。
$ ipython --pylab
import matplotlib.pyplot as plt plt.plot(range(20), range(20))
它返回matplotlib.lines.Line2D at 0xade2b2c
作为输出。
plt.show()
什么也没有发生。没有错误消息。没有新窗口。我使用pip安装了matplotlib,没有出现错误消息。
细节:
我使用,
- Ubuntu
- IPython v0.11
- Python v2.6.6
- matplotlib v1.0.1