code: def plot_figure(style_label=""):
      """Setup and plot the demonstration figure with a given style."""
      # Use a dedicated RandomState instance to draw the same "random" values
      # across the different figures.
      prng = np.random.RandomState(96917002)
  
      fig, axs = plt.subplots(
          ncols=6,
          nrows=1,
          num=style_label,
          figsize=(14.8, 2.8),
          layout="constrained",
      )
  
      # make a suptitle, in the same style for all subfigures,
      # except those with dark backgrounds, which get a lighter color:
      background_color = mcolors.rgb_to_hsv(
          mcolors.to_rgb(plt.rcParams["figure.facecolor"])
      )[2]
      if background_color < 0.5:
          title_color = [0.8, 0.8, 1]
      else:
          title_color = np.array([19, 6, 84]) / 256
      fig.suptitle(
          style_label,
          x=0.01,
          ha="left",
          color=title_color,
          fontsize=14,
          fontfamily="DejaVu Sans",
          fontweight="normal",
      )
  
      plot_scatter(axs[0], prng)
      plot_image_and_patch(axs[1], prng)
      plot_bar_graphs(axs[2], prng)
      plot_colored_lines(axs[3])
      plot_histograms(axs[4], prng)
      plot_colored_circles(axs[5], prng)
  
      # add divider
      rec = Rectangle(
          (1 + 0.025, -2), 0.05, 16, clip_on=False, color="gray"
      )
  
      axs[4].add_artist(rec)
  
file_path: matplotlib/galleries/examples/style_sheets/style_sheets_reference.py
imports: import matplotlib.pyplot
  import numpy
  import matplotlib.colors
  from matplotlib.patches import Rectangle
label_desc: Use image node_id 7 for calling a global function with example usage: plot_figure(style_label) without return types