I have a loop to show all the plots, using plt.show(). Originally I was using other IDE and it was designed to show one plot at a time and move to next plot when closing the cur