holoviews.plotting.links module#
- class holoviews.plotting.links.DataLink(source, target=None, **params)[source]#
Bases:
Link
DataLink defines a link in the data between two objects allowing them to be selected together. In order for a DataLink to be established the source and target data must be of the same length.
Parameter Definitions
- class holoviews.plotting.links.Link(source, target=None, **params)[source]#
Bases:
Parameterized
A Link defines some connection between a source and target object in their visualization. It is quite similar to a Stream as it allows defining callbacks in response to some change or event on the source object, however, unlike a Stream, it does not transfer data and make it available to user defined subscribers. Instead a Link directly causes some action to occur on the target, for JS based backends this usually means that a corresponding JS callback will effect some change on the target in response to a change on the source.
A Link must define a source object which is what triggers events, but must not define a target. It is also possible to define bi- directional links between the source and target object.
Parameter Definitions
- class holoviews.plotting.links.RangeToolLink(source, target=None, **params)[source]#
Bases:
Link
The RangeToolLink sets up a link between a RangeTool on the source plot and the axes on the target plot. It is useful for exploring a subset of a larger dataset in more detail. By default it will link along the x-axis but using the axes parameter both axes may be linked to the tool.
Example of how to use RangeToolLink can be found here: https ://www.holoviews.org/gallery/demos/bokeh/timeseries_range_tool.html
Parameter Definitions
axes = ListSelector(default=['x'], label='Axes', names={}, objects=['x', 'y'])
Which axes to link the tool to.
boundsx = Tuple(allow_None=True, label='Boundsx', length=2)
(start, end) bounds for the x-axis
boundsy = Tuple(allow_None=True, label='Boundsy', length=2)
(start, end) bounds for the y-axis
intervalsx = Tuple(allow_None=True, label='Intervalsx', length=2)
(min, max) intervals for the x-axis
intervalsy = Tuple(allow_None=True, label='Intervalsy', length=2)
(min, max) intervals for the y-axis
use_handles = Boolean(default=True, label='Use handles')
Whether to display handles. Only available from Bokeh 3.5 onwards.
start_gesture = Selector(default='tap', label='Start gesture', names={}, objects=['pan', 'tap', 'none'])
Gesture to start a range selection. Only available from Bokeh 3.5 onwards.
inverted = Boolean(default=True, label='Inverted')
Whether to invert the highlighting of the range selection. Only available from Bokeh 3.5 onwards.
- class holoviews.plotting.links.RectanglesTableLink(source, target=None, **params)[source]#
Bases:
Link
Links a Rectangles element to a Table.
Parameter Definitions
- class holoviews.plotting.links.SelectionLink(source, target=None, **params)[source]#
Bases:
Link
Links the selection between two glyph renderers.
Parameter Definitions