我正在I使用%matplotlibplot命令在内联模式下使用IPython笔记本绘制NumPy值的数组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>,
....
....
]
Run Code Online (Sandbox Code Playgroud)
然后我的情节显示在这些输出线下方.
有没有办法只显示情节并隐藏<matplotlib.lines.Line2D at ...>输出?
我有一个A形状阵列(1000,2000).我使用matplotlib.pyplot绘制数组,这意味着1000条曲线,使用
import matplotlib.pyplot as plt
plt(A)
Run Code Online (Sandbox Code Playgroud)
这个数字很好,但有一千行:
<matplotlib.lines.Line2D at 0xXXXXXXXX>
Run Code Online (Sandbox Code Playgroud)
我可以禁用此输出吗?