Text

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


Title
Text Element
Dependencies
Bokeh
Backends
Bokeh
Matplotlib
In [1]:
import numpy as np
import holoviews as hv
from holoviews import opts
hv.extension('bokeh')
In [2]:
opts.defaults(opts.Curve(color='#D3D3D3'))

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

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

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


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