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 dce9ea4

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

File tree

1 file changed

+3
-2
lines changed
Filter options

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
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.