class_docstr: Execute the file and store the output, docstring, and
  sequence of matplotlib figures
class_docstr_tok: ["Execute","the","file","and","store","the","output",",","docstring",",","and","sequence","of","matplotlib","figures"]
code: def save_figures(self, fmt):
      from matplotlib import colors
  
      for fig in self.figlist:
          figfile = fmt % fig.number
          print("saving", figfile)
  
          # if black background, save with black background as well.
          if colors.colorConverter.to_rgb(fig.get_facecolor()) == (
              0,
              0,
              0,
          ):
              fig.savefig(figfile, facecolor="k", edgecolor="none")
              fig.close()
          else:
              fig.savefig(figfile)
              fig.close()
  
file_path: astroML/doc/sphinxext/exfile.py
imports: import sys
  import os
  import traceback
  import token
  import tokenize
  import gc
  import matplotlib
  import pylab
label_desc: Use image node_id 2 for calling the ExecFile obj's underlying member method code with example usage: obj.save_figures(fmt) without return types