c2v.pl.small_cbar

Contents

c2v.pl.small_cbar#

c2v.pl.small_cbar(axes, width=0.03, height=0.2, fontsize=10, ticks_round=2, x_pad=0.02, y_pad=0, show_numbers=True)#

Adds small colorbars to the right of the specified axes.

Parameters:#

axesmatplotlib.axes.Axes | list[matplotlib.axes.Axes]

The axes object(s) to draw on (e.g., fig.axes[0]).

widthfloat, optional

Width of the colorbar. Default 3%.

heightfloat, optional

Height of each colorbar. Default 20%.

fontsizeint, optional

Font size for tick labels. Default 10.

ticks_roundint, optional

Number of decimal places to round tick labels. Default 2.

x_padfloat, optional

Padding from the right edge (0.0 to 1.0). Default 2%.

y_padfloat, optional

Padding from the top edge (0.0 to 1.0). Default 0%.

show_numbersbool, optional

Whether to show numeric tick labels. Default True.

Parameters:
axes Axes | list[Axes]

width float

height float

fontsize int

ticks_round int

x_pad float

y_pad float

show_numbers bool