Skip to content

Commit 14bf7da

Browse files
authored
Merge pull request #11339 from dstansby/ellipse-doc
Convert Ellipse docstring to numpydoc
2 parents 5a3da1f + b5b4ad9 commit 14bf7da

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

lib/matplotlib/patches.py

+14-13
Original file line numberDiff line numberDiff line change
@@ -1407,21 +1407,22 @@ def __str__(self):
14071407
return fmt % pars
14081408

14091409
@docstring.dedent_interpd
1410-
def __init__(self, xy, width, height, angle=0.0, **kwargs):
1410+
def __init__(self, xy, width, height, angle=0, **kwargs):
14111411
"""
1412-
*xy*
1413-
center of ellipse
1414-
1415-
*width*
1416-
total length (diameter) of horizontal axis
1417-
1418-
*height*
1419-
total length (diameter) of vertical axis
1420-
1421-
*angle*
1422-
rotation in degrees (anti-clockwise)
1412+
Parameters
1413+
----------
1414+
xy : tuple of (scalar, scalar)
1415+
xy coordinates of ellipse centre.
1416+
width : scalar
1417+
Total length (diameter) of horizontal axis.
1418+
height : scalar
1419+
Total length (diameter) of vertical axis.
1420+
angle : scalar, optional
1421+
Rotation in degrees anti-clockwise.
14231422
1424-
Valid kwargs are:
1423+
Notes
1424+
-----
1425+
Valid keyword arguments are
14251426
%(Patch)s
14261427
"""
14271428
Patch.__init__(self, **kwargs)

0 commit comments

Comments
 (0)