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 ef229a4

Browse filesBrowse files
committed
DOC: Clarify AxLine.set_xy2 / AxLine.set_slope
1 parent 234f08a commit ef229a4
Copy full SHA for ef229a4

File tree

Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed

‎lib/matplotlib/lines.py

Copy file name to clipboardExpand all lines: lib/matplotlib/lines.py
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,6 +1568,12 @@ def set_xy2(self, x, y):
15681568
"""
15691569
Set the *xy2* value of the line.
15701570
1571+
.. note::
1572+
1573+
You can only set *xy2* if the line was created using the *xy2*
1574+
parameter. If the line was created using *slope*, please use
1575+
`~.AxLine.set_slope`.
1576+
15711577
Parameters
15721578
----------
15731579
x, y : float
@@ -1583,6 +1589,12 @@ def set_slope(self, slope):
15831589
"""
15841590
Set the *slope* value of the line.
15851591
1592+
.. note::
1593+
1594+
You can only set *slope* if the line was created using the *slope*
1595+
parameter. If the line was created using *xy2*, please use
1596+
`~.AxLine.set_xy2`.
1597+
15861598
Parameters
15871599
----------
15881600
slope : float

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.