这个问题在这里已经有了答案:
Disable the output of matplotlib pyplot
(4 个回答)
4年前关闭。
我不确定什么是正确的术语,但这是我在绘制某些内容时所看到的:
这些情节实际上是我想要的,所以看到了,但是 jupyter notebook 也输出了一些文本:<matplotlib.axes._subplots.AxesSubplot at 0x1263354d0>
, <matplotlib.figure.Figure at 0x1263353d0>
我正试图摆脱它。
经过一番搜索,我唯一能找到的是 plt.ioff()
,这对我没有帮助。有没有办法摆脱文本?
最佳答案
您可以用分号结束相应的 (matplotlib) 行 ;
关于matplotlib - 在 jupyter notebook 中隐藏 matplotlib 描述,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38968404/