在Jupyter Notebook中隐藏Matplotlib描述 [英] Hide matplotlib descriptions in jupyter notebook

查看:117
本文介绍了在Jupyter Notebook中隐藏Matplotlib描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定什么是正确的术语,但是这是我在绘制某些东西时看到的内容:

I am not sure what is the correct term for this, but here is what I see when I plot something:

这些图实际上是我想要的,但是jupyter笔记本也会输出一些文本:<matplotlib.axes._subplots.AxesSubplot at 0x1263354d0><matplotlib.figure.Figure at 0x1263353d0>,我正试图摆脱这些文本.

The plots is actually what I want so see, but jupyter notebook also outputs some text: <matplotlib.axes._subplots.AxesSubplot at 0x1263354d0>, <matplotlib.figure.Figure at 0x1263353d0> which I am trying to get rid of.

经过一番搜索,我唯一能找到的是plt.ioff(),这对我没有帮助.有办法摆脱文字吗?

After some searching, the only thing I was able to find is plt.ioff(), which didn't help me. Is there a way to get rid of the text?

推荐答案

您可以使用分号;

这篇关于在Jupyter Notebook中隐藏Matplotlib描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆