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

Method pick

lib/mpl_toolkits/axes_grid1/parasite_axes.py:31–41  ·  view source on GitHub ↗
(self, mouseevent)

Source from the content-addressed store, hash-verified

29 return self._parent_axes.get_axes_locator()
30
31 def pick(self, mouseevent):
32 # This most likely goes to Artist.pick (depending on axes_class given
33 # to the factory), which only handles pick events registered on the
34 # axes associated with each child:
35 super().pick(mouseevent)
36 # But parasite axes are additionally given pick events from their host
37 # axes (cf. HostAxesBase.pick), which we handle here:
38 for a in self.get_children():
39 if (hasattr(mouseevent.inaxes, "parasites")
40 and self in mouseevent.inaxes.parasites):
41 a.pick(mouseevent)
42
43 # aux_transform support
44

Callers

nothing calls this directly

Calls 2

pickMethod · 0.45
get_childrenMethod · 0.45

Tested by

no test coverage detected