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

Function brush_int_selector

bqplot/pyplot.py:1114–1130  ·  view source on GitHub ↗

Create a `BrushIntervalSelector` 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 tr

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

Source from the content-addressed store, hash-verified

1112
1113
1114def brush_int_selector(func=None, trait='selected', **kwargs):
1115 """Create a `BrushIntervalSelector` interaction for the `figure`.
1116
1117 Also attaches the function `func` as an event listener for the
1118 specified trait.
1119
1120 Parameters
1121 ----------
1122
1123 func: function
1124 The call back function. It should take at least two arguments. The name
1125 of the trait and the value of the trait are passed as arguments.
1126 trait: string
1127 The name of the BrushIntervalSelector trait whose change triggers the
1128 call back function `func`.
1129 """
1130 return _create_selector(BrushIntervalSelector, func, trait, **kwargs)
1131
1132
1133def int_selector(func=None, trait='selected', **kwargs):

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…