Title: HLine Element#
Dependencies: Bokeh 3.2
import numpy as np import holoviews as hv hv.extension('bokeh')
HSpans element is a type of annotation that can mark multiple spans along the y-axis. It accepts a list of start and end y-coordinates and will draw horizontal spans. This has the advantage over
HSpan of being able to draw multiple spans at once and also being able to get hover information for each of the span.
y_start = np.arange(10) y_end = y_start + np.random.random(size=10) / 2 hv.HSpans((y_start, y_end)).opts(tools=['hover'], color='red')
For full documentation and the available style and plot options, use