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

Title: HLine Element#

Dependencies: Matplotlib

Backends: Matplotlib, Bokeh

import numpy as np
import holoviews as hv


The 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.

xs = np.random.normal(size=10)
hv.VLines(xs).opts(color='red', linewidth=5)

For full documentation and the available style and plot options, use hv.help(hv.VLines).

This web page was generated from a Jupyter notebook and not all interactivity will work on this website. Right click to download and run locally for full Python-backed interactivity.

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