Skip to content

Commit 72a1224

Browse files
authored
Merge pull request matplotlib#27536 from meeseeksmachine/auto-backport-of-pr-27534-on-v3.8.x
Backport PR matplotlib#27534 on branch v3.8.x (Clarify AxLine Params)
2 parents b577614 + 4a7efef commit 72a1224

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
@@ -1478,9 +1478,10 @@ def __init__(self, xy1, xy2, slope, **kwargs):
14781478
The first set of (x, y) coordinates for the line to pass through.
14791479
xy2 : (float, float) or None
14801480
The second set of (x, y) coordinates for the line to pass through.
1481-
Either *xy2* or *slope* has to be given.
1481+
Both *xy2* and *slope* must be passed, but one of them must be None.
14821482
slope : float or None
1483-
The slope of the line. Either *xy2* or *slope* has to be given.
1483+
The slope of the line. Both *xy2* and *slope* must be passed, but one of
1484+
them must be None.
14841485
"""
14851486
super().__init__([0, 1], [0, 1], **kwargs)
14861487

0 commit comments

Comments
 (0)