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 4a7efef

Browse filesBrowse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR #27534: Clarify AxLine Params
1 parent b577614 commit 4a7efef
Copy full SHA for 4a7efef

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎lib/matplotlib/lines.py

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