MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / __init__

Method __init__

lib/matplotlib/widgets.py:3968–3979  ·  view source on GitHub ↗
(self, ax, onselect=None, *, useblit=True, props=None, button=None)

Source from the content-addressed store, hash-verified

3966 """
3967
3968 def __init__(self, ax, onselect=None, *, useblit=True, props=None, button=None):
3969 super().__init__(ax, onselect, useblit=useblit, button=button)
3970 self.verts = None
3971 props = {
3972 **(props if props is not None else {}),
3973 # Note that self.useblit may be != useblit, if the canvas doesn't
3974 # support blitting.
3975 'animated': self._useblit, 'visible': False,
3976 }
3977 line = Line2D([], [], **props)
3978 self.ax.add_line(line)
3979 self._selection_artist = line
3980
3981 def _press(self, event):
3982 self.verts = [self._get_data(event)]

Callers

nothing calls this directly

Calls 3

Line2DClass · 0.85
add_lineMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected