Text

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


Title
Text Element
Dependencies
Matplotlib
Backends
Matplotlib
Bokeh
In [1]:
import numpy as np
import holoviews as hv
hv.extension('matplotlib')

The Text annotation is used to overlay text at a particular position on a plot:

In [2]:
xs = np.linspace(-5,5,100)
curve = hv.Curve((xs,-(xs-2)**2))
text = hv.Text(0, -30, 'Quadratic Curve')

curve.opts(color='#D3D3D3') * text
Out[2]:

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


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