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”]