We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c15694b commit 9422ba3Copy full SHA for 9422ba3
lib/matplotlib/pyplot.py
@@ -875,7 +875,8 @@ def axes(*args, **kwargs):
875
color for the axis, default white.
876
877
- ``axes(h)`` where *h* is an axes instance makes *h* the current
878
- axis. An :class:`~matplotlib.axes.Axes` instance is returned.
+ axis and the parent of *h* the current figure.
879
+ An :class:`~matplotlib.axes.Axes` instance is returned.
880
881
========= ============== ==============================================
882
kwarg Accepts Description
@@ -909,7 +910,8 @@ def axes(*args, **kwargs):
909
910
arg = args[0]
911
912
if isinstance(arg, Axes):
- a = gcf().sca(arg)
913
+ sca(arg)
914
+ a = arg
915
else:
916
rect = arg
917
a = gcf().add_axes(rect, **kwargs)
0 commit comments