Skip to content

Commit ee5ba28

Browse files
authored
Merge pull request matplotlib#28389 from meeseeksmachine/auto-backport-of-pr-28380-on-v3.9.x
Backport PR matplotlib#28380 on branch v3.9.x (Remove outdated docstring section in RendererBase.draw_text.)
2 parents a6c44d8 + 1099476 commit ee5ba28

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/matplotlib/backend_bases.py

-14
Original file line numberDiff line numberDiff line change
@@ -513,21 +513,7 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None):
513513
If True, use mathtext parser. If "TeX", use tex for rendering.
514514
mtext : `~matplotlib.text.Text`
515515
The original text object to be rendered.
516-
517-
Notes
518-
-----
519-
**Note for backend implementers:**
520-
521-
When you are trying to determine if you have gotten your bounding box
522-
right (which is what enables the text layout/alignment to work
523-
properly), it helps to change the line in text.py::
524-
525-
if 0: bbox_artist(self, renderer)
526-
527-
to if 1, and then the actual bounding box will be plotted along with
528-
your text.
529516
"""
530-
531517
self._draw_text_as_path(gc, x, y, s, prop, angle, ismath)
532518

533519
def _get_text_path_transform(self, x, y, s, prop, angle, ismath):

0 commit comments

Comments
 (0)