get_named_bins_formatterο
- eomaps.colorbar.get_named_bins_formatter(bins, names, show_values=False)ο
A formatter to format the tick-labels of the colorbar with respect to labels for a given set of bins.
- Parameters:
bins (list of float) β The (upper) bin-boundaries to use.
names (list of string) β The names for ticks that are inside the bins. Must be 1 longer than the provided bin-boundaries!
Examples
bins = [10, 20, 30, 40, 50] names =[βbelow 10β, β10-20β, β20-30β, β30-40β, β40-50β, βabove 50β]