@@ -730,15 +730,21 @@ def axes(*args, **kwargs):
730
730
- ``axes(h)`` where *h* is an axes instance makes *h* the current
731
731
axis. An :class:`~matplotlib.axes.Axes` instance is returned.
732
732
733
- ======= ============ ================================================
734
- kwarg Accepts Description
735
- ======= ============ ================================================
736
- axisbg color the axes background color
737
- frameon [True|False] display the frame?
738
- sharex otherax current axes shares xaxis attribute with otherax
739
- sharey otherax current axes shares yaxis attribute with otherax
740
- polar [True|False] use a polar axes?
741
- ======= ============ ================================================
733
+ ======= ============== ==============================================
734
+ kwarg Accepts Description
735
+ ======= ============== ==============================================
736
+ axisbg color the axes background color
737
+ frameon [True|False] display the frame?
738
+ sharex otherax current axes shares xaxis attribute
739
+ with otherax
740
+ sharey otherax current axes shares yaxis attribute
741
+ with otherax
742
+ polar [True|False] use a polar axes?
743
+ aspect [str | num] ['equal', 'auto'] or a number. If a number
744
+ the ratio of x-unit/y-unit in screen-space.
745
+ Also see
746
+ :meth:`~matplotlib.axes.Axes.set_aspect`.
747
+ ======= ============== ==============================================
742
748
743
749
Examples:
744
750
@@ -749,8 +755,9 @@ def axes(*args, **kwargs):
749
755
"""
750
756
751
757
nargs = len (args )
752
- if len (args )== 0 : return subplot (111 , ** kwargs )
753
- if nargs > 1 :
758
+ if len (args ) == 0 :
759
+ return subplot (111 , ** kwargs )
760
+ if nargs > 1 :
754
761
raise TypeError ('Only one non keyword arg to axes allowed' )
755
762
arg = args [0 ]
756
763
0 commit comments