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

Method _check_xy

lib/matplotlib/text.py:1802–1811  ·  view source on GitHub ↗

Check whether the annotation at *xy_pixel* should be drawn.

(self, renderer=None)

Source from the content-addressed store, hash-verified

1800 return self._get_xy(renderer, self.xy, self.xycoords)
1801
1802 def _check_xy(self, renderer=None):
1803 """Check whether the annotation at *xy_pixel* should be drawn."""
1804 if renderer is None:
1805 renderer = self.get_figure(root=True)._get_renderer()
1806 b = self.get_annotation_clip()
1807 if b or (b is None and self.xycoords == "data"):
1808 # check if self.xy is inside the Axes.
1809 xy_pixel = self._get_position_xy(renderer)
1810 return self.axes.contains_point(xy_pixel)
1811 return True
1812
1813 def draggable(self, state=None, use_blit=False):
1814 """

Callers 5

drawMethod · 0.45
get_window_extentMethod · 0.45
get_tightbboxMethod · 0.45
containsMethod · 0.45
drawMethod · 0.45

Calls 5

get_annotation_clipMethod · 0.95
_get_position_xyMethod · 0.95
_get_rendererMethod · 0.45
get_figureMethod · 0.45
contains_pointMethod · 0.45

Tested by

no test coverage detected