Skip to content

Commit

Permalink
Backport PR matplotlib#27534: Clarify AxLine Params
Browse files Browse the repository at this point in the history
  • Loading branch information
timhoffm authored and meeseeksmachine committed Dec 17, 2023
1 parent b577614 commit 4a7efef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/matplotlib/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1478,9 +1478,10 @@ def __init__(self, xy1, xy2, slope, **kwargs):
The first set of (x, y) coordinates for the line to pass through.
xy2 : (float, float) or None
The second set of (x, y) coordinates for the line to pass through.
Either *xy2* or *slope* has to be given.
Both *xy2* and *slope* must be passed, but one of them must be None.
slope : float or None
The slope of the line. Either *xy2* or *slope* has to be given.
The slope of the line. Both *xy2* and *slope* must be passed, but one of
them must be None.
"""
super().__init__([0, 1], [0, 1], **kwargs)

Expand Down

0 comments on commit 4a7efef

Please sign in to comment.