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

Commit93c3138

Browse files
committed
FIX: re-instate ability to have position in axes
1 parenta080696 commit93c3138

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎lib/matplotlib/pyplot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,11 @@ def axes(arg=None, **kwargs):
10601060
"""
10611061
fig=gcf()
10621062
ifargisNone:
1063-
returnfig.add_subplot(**kwargs)
1063+
pos=kwargs.pop('position',None)
1064+
ifposisNone:
1065+
returnfig.add_subplot(**kwargs)
1066+
else:
1067+
returnfig.add_axes(pos,**kwargs)
10641068
else:
10651069
returnfig.add_axes(arg,**kwargs)
10661070

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp