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

Method __init__

lib/matplotlib/offsetbox.py:1563–1578  ·  view source on GitHub ↗
(self, ref_artist, use_blit=False)

Source from the content-addressed store, hash-verified

1561 """
1562
1563 def __init__(self, ref_artist, use_blit=False):
1564 self.ref_artist = ref_artist
1565 if not ref_artist.pickable():
1566 ref_artist.set_picker(self._picker)
1567 self.got_artist = False
1568 self._use_blit = use_blit and self.canvas.supports_blit
1569 callbacks = self.canvas.callbacks
1570 self._disconnectors = [
1571 functools.partial(
1572 callbacks.disconnect, callbacks._connect_picklable(name, func))
1573 for name, func in [
1574 ("pick_event", self.on_pick),
1575 ("button_release_event", self.on_release),
1576 ("motion_notify_event", self.on_motion),
1577 ]
1578 ]
1579
1580 @staticmethod
1581 def _picker(artist, mouseevent):

Callers

nothing calls this directly

Calls 3

pickableMethod · 0.80
_connect_picklableMethod · 0.80
set_pickerMethod · 0.45

Tested by

no test coverage detected