MCPcopy Index your code
hub / github.com/bqplot/bqplot / lasso_selector

Function lasso_selector

bqplot/pyplot.py:1209–1225  ·  view source on GitHub ↗

Creates a `LassoSelector` interaction for the `figure`. Also attaches the function `func` as an event listener for the specified trait. Parameters ---------- func: function The call back function. It should take at least two arguments. The name of the trait and

(func=None, trait='selected', **kwargs)

Source from the content-addressed store, hash-verified

1207
1208
1209def lasso_selector(func=None, trait='selected', **kwargs):
1210 """Creates a `LassoSelector` interaction for the `figure`.
1211
1212 Also attaches the function `func` as an event listener for the
1213 specified trait.
1214
1215 Parameters
1216 ----------
1217
1218 func: function
1219 The call back function. It should take at least two arguments. The name
1220 of the trait and the value of the trait are passed as arguments.
1221 trait: string
1222 The name of the LassoSelector trait whose change triggers the
1223 call back function `func`.
1224 """
1225 return _create_selector(LassoSelector, func, trait, **kwargs)
1226
1227
1228def clear():

Callers

nothing calls this directly

Calls 1

_create_selectorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…