parameters: (config, results, images_dir, out_filename)
docstring: Plot one diagram
docstring_summary: Plot one diagram
docstring_tokens: Plot one diagram
function: def plot_diagram(config, results, images_dir, out_filename):
      """Plot one diagram"""
      img_files = plot_temp_diagrams(config, results, images_dir)
      join_images(img_files, out_filename)
      for img_file in img_files:
          os.remove(img_file)
function_tokens: def plot_diagram ( config , results , images_dir , out_filename ) : img_files = plot_temp_diagrams ( config , results , images_dir ) join_images ( img_files , out_filename ) for img_file in img_files : os . remove ( img_file )