polartoolkit.Figure.add_colorbar#
- Figure.add_colorbar(hist=False, cpt_lims=None, cbar_frame=None, verbose='warning', **kwargs)[source]#
Add a colorbar based on the last cmap used by PyGMT and optionally a histogram of the data values.
- Parameters:
hist (
bool) β choose whether to add a colorbar histogram, by default Falsecpt_lims (
tuple[float,float] |None) β cpt lims to use for the colorbar histogram, must match those used to create the colormap. If not supplied, will attempt to get values from kwargs grid, by default Nonecbar_frame (
list[str] |str|None) β frame for the colorbar, by default Noneverbose (
str) β verbosity level for pygmt, by default βwarningβ for warnings**kwargs (
Any) β additional keyword arguments to pass
- Return type: