import numpy as np import holoviews as hv hv.extension('matplotlib')
A Layout is a collection of HoloViews objects that are related in some way, to be displayed side-by-side. Like
and unlike other containers such as
dictionary like: it holds potentially heterogeneous types without any dimensioned keys.
but can otherwise contain
other HoloViews object. See
Building Composite Objects
for more details on how to compose containers. It is best to learn about
together as they are very closely related objects that share many core concepts.
You can build a
between any two HoloViews objects (which can have different types) using the
xvals = [0.1* i for i in range(100)] curve = hv.Curve((xvals, [np.sin(x) for x in xvals])) scatter = hv.Scatter((xvals[::5], np.linspace(0,1,20))) curve + scatter