From db08c6e4fc4473f01e66f353557ec8b5dabe918c Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Tue, 31 Jan 2023 11:45:09 +0100 Subject: [PATCH] Fix outdated comment re: _update_label_position. AFAICT the overlap avoidance (i.e. labelpad) has never been implemented by making a scaled-up copy of the label box... --- 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) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy