import numpy as np import holoviews as hv from holoviews import dim, opts hv.extension('matplotlib') np.random.seed(12) coords = np.random.rand(50,2) points = hv.Points(coords) points.opts(color='k', marker='+', s=50) points + points[0.6:0.8,0.2:0.5] np.random.seed(10) data = np.random.rand(100,4) points = hv.Points(data, vdims=['z', 'size']) (points + points[0.3:0.7, 0.3:0.7].hist()).opts( opts.Points(color='z', s=dim('size')*50))