Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 14bf7da

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

File tree

Expand file treeCollapse file tree

1 file changed

+14
-13
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-13
lines changed

‎lib/matplotlib/patches.py

Copy file name to clipboardExpand all lines: lib/matplotlib/patches.py
+14-13Lines changed: 14 additions & 13 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.