@@ -730,15 +730,21 @@ def axes(*args, **kwargs):
730730 - ``axes(h)`` where *h* is an axes instance makes *h* the current
731731 axis. An :class:`~matplotlib.axes.Axes` instance is returned.
732732
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+ ======= ============== ==============================================
742748
743749 Examples:
744750
@@ -749,8 +755,9 @@ def axes(*args, **kwargs):
749755 """
750756
751757 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 :
754761 raise TypeError ('Only one non keyword arg to axes allowed' )
755762 arg = args [0 ]
756763
0 commit comments