【发布时间】:2014-11-05 13:22:04
【问题描述】:
我正在绘制一个 NumPy 值数组 I,在 %matplotlib 内联模式下使用 IPython 笔记本和绘图命令 plt.plot(I,'o')。
结果输出是:
<matplotlib.figure.Figure at 0x119e6ead0>
Out[159]:
[<matplotlib.lines.Line2D at 0x11ac57090>,
<matplotlib.lines.Line2D at 0x11ac57310>,
<matplotlib.lines.Line2D at 0x11ac57510>,
<matplotlib.lines.Line2D at 0x11ac57690>,
<matplotlib.lines.Line2D at 0x11ac57810>,
<matplotlib.lines.Line2D at 0x11ac57990>,
<matplotlib.lines.Line2D at 0x11ac57b10>,
....
....
]
然后我的情节显示在这些输出线的下方。
有没有办法只显示绘图并从输出中隐藏<matplotlib.lines.Line2D at ...>?
【问题讨论】:
标签: python matplotlib plot ipython ipython-notebook