请尝试以下代码:
import matplotlib.pyplot as plt
fig = plt.figure() #creates a pyplot figure
plt.close(fig) #closes the figure
fig.show() #resurrects the figure, that is, displays it
plt.close(fig) #should close the figure, but does nothing
我的问题是:
为什么最后一行代码不关闭图形?
如何得到关闭的数字无论如何(编程)后,它已经复活如上所述?
目前没有回答
相关问题 更多 >
编程相关推荐