8000 DOC: Clarify AxLine.set_xy2 / AxLine.set_slope by timhoffm · Pull Request #28801 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC: Clarify AxLine.set_xy2 / AxLine.set_slope #28801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/matplotlib/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,12 @@ def set_xy2(self, x, y):
"""
Set the *xy2* value of the line.

.. note::

You can only set *xy2* if the line was created using the *xy2*
parameter. If the line was created using *slope*, please use
`~.AxLine.set_slope`.

Parameters
----------
x, y : float
Expand All @@ -1583,6 +1589,12 @@ def set_slope(self, slope):
"""
Set the *slope* value of the line.

.. note::

You can only set *slope* if the line was created using the *slope*
parameter. If the line was created using *xy2*, please use
`~.AxLine.set_xy2`.

Parameters
----------
slope : float
Expand Down
Loading
0