Dot Example#
Download this notebook from GitHub (right-click to download).
import holoviews as hv
from holoviews import opts
hv.extension('bokeh')
Declare data#
factors = ["a", "b", "c", "d", "e", "f", "g", "h"]
x = [50, 40, 65, 10, 25, 37, 80, 60]
scatter = hv.Scatter((factors, x))
spikes = hv.Spikes(scatter)
x = ["foo", "foo", "foo", "bar", "bar", "bar", "baz", "baz", "baz"]
y = ["foo", "bar", "baz", "foo", "bar", "baz", "foo", "bar", "baz"]
z = [0, 1, 2, 3, 4, 5, 6, 7, 8]
heatmap = hv.HeatMap((x, y, z))
Plot#
(heatmap + spikes * scatter).opts(
opts.Scatter(size=15, fill_color="orange", line_color="green"),
opts.Spikes(color='green', line_width=4, labelled=[], invert_axes=True, color_index=None),
opts.Layout(shared_axes=False))
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).