Download this notebook from GitHub (right-click to download).

Title: Scalebar#

Dependencies: Bokeh

Backends: Bokeh

The scalebar feature overlays a scale bar on the element to help gauge the size of features on a plot. This is particularly useful for maps, images like CT or MRI scans, and other scenarios where traditional axes might be insufficient.

import holoviews as hv
import numpy as np


pollen = hv.RGB.load_image("../assets/pollen.png", bounds=(-10, -5, 10, 15)).opts(scalebar=True)