Title: HLine Element#
Dependencies: Bokeh 3.2
import numpy as np import holoviews as hv hv.extension('bokeh')
VLines element is a type of annotation that can mark multiple lines along the x-axis. It accepts a list of x-coordinates and will draw a vertical line at each location. This has the advantage over
VLine of being able to draw multiple lines at once and also being able to get hover information for each of the line.
xs = np.random.normal(size=10) hv.VLines(xs).opts(tools=['hover'], color='red', line_width=5)
For full documentation and the available style and plot options, use