Skip to contents

add_colorbar() with colormap in the leading position, for parity with the Python API.

Usage

add_colormap(map, colormap = "viridis", vmin = 0, vmax = 1, label = "", ...)

Arguments

map

A GeoLibre widget.

colormap

A color ramp name from color_ramp_names(). Ignored when colors is supplied.

vmin

Value at the low end of the colorbar.

vmax

Value at the high end of the colorbar.

label

Title shown alongside the colorbar.

...

Forwarded to add_colorbar(), for example units, orientation, or position.

Value

The modified widget.

Examples

geolibre() |> add_colormap("plasma", vmin = 0, vmax = 100, label = "Index")