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

查看:36
本文介绍了在 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 notebook 也输出一些文本:, 我正试图摆脱它.

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?

推荐答案

可以用分号结束对应的(matplotlib)行;

You can finish the corresponding (matplotlib) line with a semicolon ;

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

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