MCPcopy Index your code
hub / github.com/plotly/plotly.py / LassoSelector

Class LassoSelector

plotly/callbacks.py:247–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245
246
247class LassoSelector:
248 def __init__(self, xs=None, ys=None, **_):
249 self._type = "lasso"
250 self._xs = xs
251 self._ys = ys
252
253 def __repr__(self):
254 return """\
255LassoSelector(xs={xs},
256 ys={ys})""".format(
257 xs=_list_repr_elided(self.xs, indent=len("LassoSelector(xs=")),
258 ys=_list_repr_elided(self.ys, indent=len(" ys=")),
259 )
260
261 @property
262 def type(self):
263 """
264 The selector's type
265
266 Returns
267 -------
268 str
269 """
270 return self._type
271
272 @property
273 def xs(self):
274 """
275 list of x-axis coordinates of each point in the lasso selection
276 boundary
277
278 Returns
279 -------
280 list[float]
281 """
282 return self._xs
283
284 @property
285 def ys(self):
286 """
287 list of y-axis coordinates of each point in the lasso selection
288 boundary
289
290 Returns
291 -------
292 list[float]
293 """
294 return self._ys

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected