So, I have python code that contains several graphs using pyplot. Each time I run the script, new chart windows appear, which I have to close manually. How to close all open windows for the gun at the beginning of the script? I.e. closing windows that were opened during previous executions of the script?
In MatLab, this can be done simply by using closeall .
Riggs source share