Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5d6acdf

Browse filesBrowse files
authored
Merge pull request #28380 from anntzer/bba
Remove outdated docstring section in RendererBase.draw_text.
2 parents bcaffa1 + 9f268cd commit 5d6acdf
Copy full SHA for 5d6acdf

File tree

1 file changed

+0
-14
lines changed
Filter options

1 file changed

+0
-14
lines changed

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
-14Lines changed: 0 additions & 14 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.