Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c7e815b

Browse filesBrowse files
dstansbymeeseeksmachine
authored andcommitted
Backport PR matplotlib#25113: Fix outdated comment re: _update_label_position.
1 parent dacc4ae commit c7e815b
Copy full SHA for c7e815b

File tree

Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed

‎lib/matplotlib/axis.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axis.py
+1-5Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.