import matplotlib.pyplot as plt
%matplotlib inline
fig = plt.figure()
我应该得到一个没有值的弹出式空图,但是在jupyter中仅显示输出内容:
<Figure size 432x288 with 0 Axes>
为什么没有显示图形?
%matplotlib inline
,使用%matplotlib notebook
在笔记本电脑中显示输出。 import matplotlib.pyplot as plt
%matplotlib notebook
fig = plt.figure()