sidpy.viz.plot_utils.curve.cbar_for_line_plot

sidpy.viz.plot_utils.curve.cbar_for_line_plot(axis, num_steps, discrete_ticks=True, **kwargs)[source]

Adds a colorbar next to a line plot axis

Parameters:
  • axis (matplotlib.axes.Axes) – Axis with multiple line objects

  • num_steps (uint) – Number of steps in the colorbar

  • discrete_ticks ((optional) bool) – Whether or not to have the ticks match the number of number of steps. Default = True