Point draw triangulate

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


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

Declaring data

In [2]:
points = hv.Points([(0, 0), (0.5, 0.5), (1, 0)])
point_stream = PointDraw(data=points.columns(), source=points)
trimesh = hv.DynamicMap(hv.TriMesh.from_vertices, streams=[point_stream])

Plot

In [3]:
(trimesh * points).opts(
    opts.Points(width=500, height=500, size=10, line_color='black', nonselection_alpha=0.3))
Out[3]:

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