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

Method _add_text

lib/matplotlib/axes/_base.py:2469–2478  ·  view source on GitHub ↗

Add a `.Text` to the Axes; return the text.

(self, txt)

Source from the content-addressed store, hash-verified

2467 return line
2468
2469 def _add_text(self, txt):
2470 """
2471 Add a `.Text` to the Axes; return the text.
2472 """
2473 _api.check_isinstance(mtext.Text, txt=txt)
2474 self._set_artist_props(txt)
2475 self._children.append(txt)
2476 txt._remove_method = self._children.remove
2477 self.stale = True
2478 return txt
2479
2480 def _point_in_data_domain(self, x, y):
2481 """

Callers 2

textMethod · 0.80
annotateMethod · 0.80

Calls 1

_set_artist_propsMethod · 0.95

Tested by

no test coverage detected