matplotlib.colorbar

Colorbars are a visualization of the mapping from scalar values to colors. In Matplotlib they are drawn into a dedicated ~.axes.Axes.

Note

Colorbars are typically created through .Figure.colorbar or its pyplot wrapper .pyplot.colorbar, which internally use .Colorbar together with .make_axes_gridspec (for .GridSpec-positioned axes) or .make_axes (for non-.GridSpec-positioned axes).

End-users most likely won’t need to directly use this module’s API.