matplotlib - 在 jupyter notebook 中隐藏 matplotlib 描述

标签 matplotlib jupyter-notebook

这个问题在这里已经有了答案:





Disable the output of matplotlib pyplot

(4 个回答)


4年前关闭。




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

enter image description here

这些情节实际上是我想要的,所以看到了,但是 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/

相关文章:

jupyter-notebook - 如何卸载使用 pip3 安装的 Jupyter Notebook

ipython-notebook - 在笔记本中结合 jupyter/ipython 内核

python - 在 jupyter 笔记本中内联显示 R ggplots

python - 在 Cartopy 中更改 map 边界颜色

python - matplotlib fill_between 不循环显示颜色

python - 使用 np.log(array) 时忽略负值

jupyter-notebook - Jupyter notebook 加载 DLL 失败

python - 如何根据matplotlib中的颜色图对散点图进行着色?

python - NetworkX:在 for 循环中绘制图形返回错误的图形

python - 出现错误 "Expected 2D array, got 1D array instead",分割数据集(csv)以形成线性