8000 Merge pull request #28801 from timhoffm/axline-set_xy2 · timhoffm/matplotlib@e27961d · GitHub
[go: up one dir, main page]

Skip to content

Commit e27961d

Browse files
authored
Merge pull request matplotlib#28801 from timhoffm/axline-set_xy2
DOC: Clarify AxLine.set_xy2 / AxLine.set_slope
2 parents 234f08a + ef229a4 commit e27961d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/matplotlib/lines.py

Lines 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