matplotlib show() doesn’t work twice

At the start of your code, enable interactive mode via
plt.ion()

Leave a Comment