Julia PyPlot:如何有条件地抑制 Jupyter 笔记本中的自动图形输出?

时间:2021-02-07 18:25:43

标签: matplotlib ijulia-notebook

我目前正在通过 PyPlot.jlIJulia 使用 Jupyter lab

我希望 PyPlot.jl 生成的数字仅在我需要时显示,例如在调用 display(fig) 之后。

但是,图形总是在调用 plot() 的单元格之后立即呈现。

enter image description here

有人告诉我 here PyPlot.isjulia_display[] = false 会抑制输出。但是,这样做后,所有数字都消失了,我只打印了 matplotlib.lines.Line2D

enter image description here

似乎这些图根本没有通过 PyPlot.isjulia_display[] = false 转换为可显示的对象。

那么,这样可以有条件地抑制 Jupyter notebook 中的自动图形输出吗?

0 个答案:

没有答案
相关问题