Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitd247979

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 parentsdacc4ae +c7e815b commitd247979

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
fortickinticks_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)

[8]ページ先頭

©2009-2025 Movatter.jp