8000 Merge pull request #25118 from meeseeksmachine/auto-backport-of-pr-25… · matplotlib/matplotlib@d247979 · GitHub
[go: up one dir, main page]

Skip to content

Commit d247979

Browse files
authored
Merge pull request #25118 from meeseeksmachine/auto-backport-of-pr-25113-on-v3.7.x
Backport PR #25113 on branch v3.7.x (Fix outdated comment re: _update_label_position.)
2 parents dacc4ae + c7e815b commit d247979

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/matplotlib/axis.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,12 +1374,8 @@ def draw(self, renderer, *args, **kwargs):
13741374
for tick in ticks_to_draw:
13751375
tick.draw(renderer)
13761376

1377-
# Scale up the axis label box to also find the neighbors, not just the
1378-
# tick labels that actually overlap. We need a *copy* of the axis
1379-
# label box because we don't want to scale the actual bbox.
1380-
1377+
# Shift label away from axes to avoid overlapping ticklabels.
13811378
self._update_label_position(renderer)
1382-
13831379
self.label.draw(renderer)
13841380

13851381
self._update_offset_text_position(tlb1, tlb2)

0 commit comments

Comments
 (0)
0