Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
on_selection
1 parent a04bcaf commit 3fa38e5Copy full SHA for 3fa38e5
plotly/basedatatypes.py
@@ -3857,6 +3857,21 @@ def on_selection(
3857
Returns
3858
-------
3859
None
3860
+
3861
+ Examples
3862
+ --------
3863
+ >>> from plotly.callbacks import Points
3864
+ >>> points = Points()
3865
3866
+ >>> def selection_fn(trace, points, selector):
3867
+ ... inds = points.point_inds
3868
+ ... # Do something
3869
3870
+ >>> trace.on_selection(selection_fn)
3871
3872
+ Note: The creation of the `points` object is optional,
3873
+ it's simply a convenience to help the text editor perform completion
3874
+ on the `points` arguments inside `selection_fn`
3875
"""
3876
if not append:
3877
del self._select_callbacks[:]
0 commit comments