title: Closing Matplotlib figures
body: <p>I am using Matplotlib and MPLD3 to create graphs that can be displayed in html plages (using django). Currently my graphs are being generated dynamically from data being pulled from csv files. Every so often I get this message in my Terminal: </p>
  
  <blockquote>
    <p>RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (<code>matplotlib.pyplot.figure</code>) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam <code>figure.max_num_figures</code>).
          max_open_warning, RuntimeWarning)</p>
  </blockquote>
  
  <p>I am not really sure what it means, but I am assuming it means I should have some way of closing graphs that are not in use. Is there anyway to do this or am I completely off base? Thanks. </p>