Python-关闭绘图matplotlib后生成的空白
在模式Python-关闭绘图matplotlib后生成的空白,python,matplotlib,jupyter,Python,Matplotlib,Jupyter,在模式%matplotlib notebook中,当我尝试关闭一个图形时,jupyter会在笔记本中留下空白 是否有删除此空白的命令或关闭图形的正确方法 ma = [int(1000*random.random()) for i in xrange(10000)] plt.figure() counts,bins,bars = plt.hist(ma,200,alpha=0.5) plt.close() plt.figure() plt.plot(ma)
%matplotlib notebook
中,当我尝试关闭一个图形时,jupyter会在笔记本中留下空白
是否有删除此空白的命令或关闭图形的正确方法
ma = [int(1000*random.random()) for i in xrange(10000)]
plt.figure()
counts,bins,bars = plt.hist(ma,200,alpha=0.5)
plt.close()
plt.figure()
plt.plot(ma)