8000 DOC : added aspect to pyplot.axes doc · matplotlib/matplotlib@7a63312 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a63312

Browse files
committed
DOC : added aspect to pyplot.axes doc
1 parent 6bbfae6 commit 7a63312

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

lib/matplotlib/pyplot.py

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -730,15 +730,19 @@ 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+
======= ============== ==============================================
742746
743747
Examples:
744748
@@ -749,8 +753,9 @@ def axes(*args, **kwargs):
749753
"""
750754

751755
nargs = len(args)
752-
if len(args)==0: return subplot(111, **kwargs)
753-
if nargs>1:
756+
if len(args) == 0:
757+
return subplot(111, **kwargs)
758+
if nargs > 1:
754759
raise TypeError('Only one non keyword arg to axes allowed')
755760
arg = args[0]
756761

0 commit comments

Comments
 (0)
0