我最近在调试一个python脚本,当我多次手动重新运行该脚本时,我发现matplotlib的一个有点恼人的问题:如果图形标题相同,它总是在现有图形窗口上绘制,重叠在现有图形窗口上。我正在调试的脚本如下所示:# Some calculations here
plt.figure('Results') # The scriptwill only crea
plt.figure(figsize=(15,15),dpi=300)nd = nx.draw_networkx_nodesalong the bottom edge are off labelleft='off')plt.savefig('foo.pdf')
在我的苹果iPython笔记本上运行时,和在微软