From c7e815b042fd6738c53101740d49e0bd20104fdd Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 31 Jan 2023 20:01:23 +0000 Subject: [PATCH] Backport PR #25113: Fix outdated comment re: _update_label_position. --- lib/matplotlib/axis.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py index fff753704cea..0b4646cd5df7 100644 --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -1374,12 +1374,8 @@ def draw(self, renderer, *args, **kwargs): for tick in ticks_to_draw: tick.draw(renderer) - # Scale up the axis label box to also find the neighbors, not just the - # tick labels that actually overlap. We need a *copy* of the axis - # label box because we don't want to scale the actual bbox. - + # Shift label away from axes to avoid overlapping ticklabels. self._update_label_position(renderer) - self.label.draw(renderer) self._update_offset_text_position(tlb1, tlb2)