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

Commita2d2b80

Browse files
authored
Merge pull request#12547 from QuLogic/disable-stickies-more
Disable sticky edge accumulation if no autoscaling.
2 parentsa8dca07 +318a589 commita2d2b80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎lib/matplotlib/axes/_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2403,7 +2403,9 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True):
24032403
iftightisnotNone:
24042404
self._tight=bool(tight)
24052405

2406-
ifself.use_sticky_edgesand (self._xmarginorself._ymargin):
2406+
ifself.use_sticky_edgesand (
2407+
(self._xmarginandscalexandself._autoscaleXon)or
2408+
(self._ymarginandscaleyandself._autoscaleYon)):
24072409
stickies= [artist.sticky_edgesforartistinself.get_children()]
24082410
x_stickies=np.array([xforstickyinstickiesforxinsticky.x])
24092411
y_stickies=np.array([yforstickyinstickiesforyinsticky.y])

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp