From 9f268cd91b3a4f30f634f967e653811ad93f4784 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Wed, 12 Jun 2024 11:04:10 +0200 Subject: [PATCH] Remove outdated docstring section in RendererBase.draw_text. The line of code mentioned in the docstring has been removed since e50ff69d, back in 2004... --- lib/matplotlib/backend_bases.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index 28815f60630a..91df19a944ef 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -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):