You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[68], line 11
8 target1 = hv.Curve((x1, data)).opts(width=800, height=200, labelled=['y'], toolbar=None)
9 target2 = hv.Area((x2, data)).opts(width=800, height=200, labelled=['y'], toolbar=None)
---> 11 rtlink = RangeToolLink(source, [target1, target2])
13 (target1 + target2 + source).opts(merge_tools=True, shared_axes=False).cols(1)
File [~/Dropbox/FHNW/Projekte/CoGE/wt-coge-va/feature_gam/.pixi/envs/jupyter/lib/python3.11/site-packages/holoviews/plotting/links.py:44](http://localhost:8888/lab/workspaces/auto-g/tree/docs/~/Dropbox/FHNW/Projekte/CoGE/wt-coge-va/feature_gam/.pixi/envs/jupyter/lib/python3.11/site-packages/holoviews/plotting/links.py#line=43), in Link.__init__(self, source, target, **params)
42 # Source is stored as a weakref to allow it to be garbage collected
43 self._source = None if source is None else weakref.ref(source)
---> 44 self._target = None if target is None else weakref.ref(target)
45 super().__init__(**params)
46 self.link()
TypeError: cannot create weak reference to 'list' object
Selection deleted
Describe the solution you'd like
It would be nice to be able to pass a list of targets to the RangeToolLink:
rtlink=RangeToolLink(source, [target1, target2])
At the moment it is possbile to achive this functionality in a somewhat hacky implicit way using shared_axes=True and manipulating the kdims - see #6463. So the role of the shared_axes parameter should be clarified.
Is your feature request related to a problem? Please describe.
Holoviews has the
RangeToolLink
which can be used to link the axes between the source and the target element:It is often the case that one needs to link multiple targets to the range tool, but in holoviews this is currently not possible:
Error:
Describe the solution you'd like
It would be nice to be able to pass a list of targets to the
RangeToolLink
:At the moment it is possbile to achive this functionality in a somewhat hacky implicit way using
shared_axes=True
and manipulating thekdims
- see #6463. So the role of theshared_axes
parameter should be clarified.Describe alternatives you've considered
In Bokeh, this could look like so:
The text was updated successfully, but these errors were encountered: