【发布时间】:2019-01-16 12:00:05
【问题描述】:
import matplotlib.pyplot as plt
%matplotlib inline
fig=plt.figure()
plt.show()
输出是:
matplotlib.figure.Figure at 0x536ea70
我想看空图,我正在阅读一个 pycon 教程,同样的代码产生了一个空图。
【问题讨论】:
-
我不认为这是骗子@Agile_Eagle,魔术线
%matplotlib inline不再有预期的效果;在某个时候,它被%matplotlib notebook取代了 -
@ReblochonMasque 这是 dup-target 下的 the answer。
-
@ReblochonMasque 答案已经存在于原始问题中:stackoverflow.com/a/34222212/9871094
-
是的,好的,我现在看到了;它被埋葬了。谢谢
-
我不明白为什么这个问题被否决了。它也不是重复的。该问题要求使用内联后端绘制一个空图。
标签: python matplotlib jupyter-notebook jupyter