code: 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)
docs: Plot one diagram