8000 Fix outdated comment re: _update_label_position. · matplotlib/matplotlib@c12dfcf · GitHub
[go: up one dir, main page]

Skip to content

Commit c12dfcf

Browse files
committed
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...
1 parent 1ad6cbf commit c12dfcf

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 the label down so that it doesn't overlap the 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