我有一個功能,我的繪圖。喜歡的東西:在ipython中繪製函數的多個繪圖窗口?
def myplot(data):
fig, ax = plt.subplots(10,10, figsize=(18,12))
for i in range(10):
ax[i/10, i%10].imshow(data[i/10, i%10],cmap=plt.cm.gist_yarg,
interpolation='nearest', aspect='equal')
plt.show()
#print the fist plot
myplot(data1)
#print another
myplot(data2)
當我運行使用ipython myscript.py
腳本將myplot(data1)
後暫停並不會恢復,直到我關閉繪圖窗口。我怎樣才能讓多個窗口打開?
也許這將有助於:http://matplotlib.org/users/shell.html#controlling-interactive-updating –