ColorBar

class eomaps.colorbar.ColorBar(m, pos=0.4, inherit_position=None, margin=None, hist_size=0.8, hist_bins=256, extend=None, extend_frac=0.025, orientation='horizontal', dynamic_shade_indicator=False, show_outline=False, tick_precision=2, tick_formatter=None, log=False, out_of_range_vals='clip', hist_kwargs=None, label=None, ylabel=None, **kwargs)

Class to draw colorbars with a histogram on top.

Methods

__init__(m[, pos, inherit_position, margin, ...])

Add a colorbar to the map.

indicate_contours([contour_map, add_labels, ...])

Indicate contour locations in the colorbar.

remove()

Remove the colorbar from the map.

set_bin_labels(bins, names[, tick_lines, ...])

Set the tick-labels of the colorbar to custom names with respect to a given set of bins.

set_hist_size([size])

Set the size of the histogram (relative to the total colorbar size)

set_labels([cb_label, hist_label])

Set the labels (and the styling) for the colorbar (and the histogram).

set_position(pos)

Set the position of the colorbar (and all colorbars that share the same location)

set_visible(vis)

Set the visibility of the colorbar.

tick_params([what])

Set the appearance of the colorbar (or histogram) ticks.