title: How do I close all pyplot windows (including ones from previous script executions)?
body: <p>So I have some python code that plots a few graphs using pyplot. Every time I run the script new plot windows are created that I have to close manually. How do I close all open pyplot windows at the start of the script? Ie. closing windows that were opened during previous executions of the script?</p>
  
  <p>In MatLab this can be done simply by using <code>closeall</code>.</p>