Skip to content

Commit dce9ea4

Browse files
authored
Merge pull request #27534 from rcomer/axline-params
Clarify AxLine Params
2 parents 2e95cf2 + 2d2e863 commit dce9ea4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/lines.py

+3-2
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* must 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* must 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)