Plot one figure at a time without closing old figure (matplotlib)
问题 Is there a way to plot a set of figures one at a time without closing the previous figure, maintaining control of the UI, and keeping the figures open at the end? Perhaps using a more appropriate backend, or writing it using the OO style instead of the pyplot/pylab style used below? e.g. I know I can do plt.ioff() for i in range(10) plt.figure() arr = thisFunctionTakesTenSecondsToGenerateMyArray() plt.plot(arr) plt.show() which will wait for me to close the figure at every iteration I can