shamrock.matplotlib.legend.add_cmap_legend_entry#

shamrock.matplotlib.legend.add_cmap_legend_entry(ax, cmap, label, num_stripes=8, extra_handles=None, extra_labels=None, **legend_kwargs)#

Add a colormap-gradient swatch entry to ax’s legend, optionally combined with normal labeled handles (extra_handles/extra_labels).