Skip to content

Backport PR #28380 on branch v3.9.x (Remove outdated docstring section in RendererBase.draw_text.) #28389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,21 +513,7 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None):
If True, use mathtext parser. If "TeX", use tex for rendering.
mtext : `~matplotlib.text.Text`
The original text object to be rendered.

Notes
-----
**Note for backend implementers:**

When you are trying to determine if you have gotten your bounding box
right (which is what enables the text layout/alignment to work
properly), it helps to change the line in text.py::

if 0: bbox_artist(self, renderer)

to if 1, and then the actual bounding box will be plotted along with
your text.
"""

self._draw_text_as_path(gc, x, y, s, prop, angle, ismath)

def _get_text_path_transform(self, x, y, s, prop, angle, ismath):
Expand Down
Loading