Demonstrating get_linespecs()

plot_utils.linespecs_demo(line_specs, horizontal_plot=False)[source]

Demonstrate line specifications generated by :func:~`get_linespecs()`.

line_spec : list<dict>
A list of line specifications. It can be the returned value of get_linespecs().
horizontal_plot : bool
Whether or not to demonstrate the line specifications in a horizontal plot.
Returns:
  • fig (matplotlib.figure.Figure) – The figure object being created or being passed into this function.
  • ax (matplotlib.axes._subplots.AxesSubplot) – The axes object being created or being passed into this function.