Skip to content

Commit 9c6faec

Browse files
committed
Clarify AxLine Params [ci doc]
1 parent cf60835 commit 9c6faec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/lines.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,9 +1464,10 @@ def __init__(self, xy1, xy2, slope, **kwargs):
14641464
The first set of (x, y) coordinates for the line to pass through.
14651465
xy2 : (float, float) or None
14661466
The second set of (x, y) coordinates for the line to pass through.
1467-
Either *xy2* or *slope* has to be given.
1467+
Both *xy2* and *slope* have to be passed, but one of them must be None.
14681468
slope : float or None
1469-
The slope of the line. Either *xy2* or *slope* has to be given.
1469+
The slope of the line. Both *xy2* and *slope* have to be passed, but one of
1470+
them must be None.
14701471
"""
14711472
super().__init__([0, 1], [0, 1], **kwargs)
14721473

0 commit comments

Comments
 (0)