In [ ]:
import holoviews as hv
from holoviews import opts
hv.extension('bokeh')

Declare data


In [ ]:
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


In [ ]:
(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))