Check whether the annotation at *xy_pixel* should be drawn.
(self, renderer=None)
| 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 | """ |
no test coverage detected