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 VSpans element is a type of annotation that can mark multiple spans along the x-axis. It accepts a list of start and end x-coordinates and will draw vertical spans at each location. This has the advantage over VSpan of being able to draw multiple spans at once.

x_start = np.arange(10)
x_end = x_start + np.random.random(size=10) / 2
hv.VSpans((x_start, x_end)).opts(color='red')

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

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