ColorBar๏ƒ

class eomaps.colorbar.ColorBar(*args, inherit_position=True, layer=None, **kwargs)๏ƒ

Base class for EOmaps colorbars with a histogram on top.

Note

To add a colorbar to a map, use Maps.add_colorbar.

Methods

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 label-style) for the colorbar (and the histogram).

set_position(pos)

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

set_scale([log])

Set the scale of the colorbar histogram.

set_visible(vis)

Set the visibility of the colorbar.

tick_params([what])

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

Attributes

layer

The layer associated with the colorbar.

max_n_classify_bins_to_label