Open TheoMathurin opened 1 month ago
On HoloViews 1.18.3, style mapping using vdims does not work properly because empty_value is not set correctly. Updates are correctly taken into account though.
empty_value
In the following example, default size is 0 instead of 10.
import holoviews as hv from holoviews import opts, streams from holoviews.plotting.links import DataLink import panel as pn hv.extension('bokeh') data = ([0, 0.5, 1], [0, 0.5, 0], [6, 8, 4]) points = hv.Points(data, vdims='size').redim.range(x=(-.1, 1.1), y=(-.1, 1.1)) point_stream = streams.PointDraw(data=points.columns(), num_objects=10, source=points, empty_value=10) point_stream.add_subscriber(lambda **kwargs: print(kwargs)) table = hv.Table(points, ['x', 'y'], 'size') DataLink(points, table) pn.Row((points + table).opts( opts.Layout(merge_tools=False), opts.Points(active_tools=['point_draw'], color='k', height=400, size='size', tools=['hover'], width=400), opts.Table(editable=True))).servable()
On HoloViews 1.18.3, style mapping using vdims does not work properly because
empty_value
is not set correctly. Updates are correctly taken into account though.In the following example, default size is 0 instead of 10.