Skip to content

[Doc]: axvline.x sets x not y #29606

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

Closed
gdmcbain opened this issue Feb 11, 2025 · 0 comments · Fixed by #29607
Closed

[Doc]: axvline.x sets x not y #29606

gdmcbain opened this issue Feb 11, 2025 · 0 comments · Fixed by #29607

Comments

@gdmcbain
Copy link
Contributor

Documentation Link

https://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.axvline.html#matplotlib.axes.Axes.axvline

Problem

The documentation for the first argument, x of axhline describes it as

x : float, default: 0
y position in :ref:`data coordinates <coordinate-systems>`.

but really it sets x rather than y.

Suggested improvement

        x : float, default: 0
            x position in :ref:`data coordinates <coordinate-systems>`.
gdmcbain added a commit to gdmcbain/matplotlib that referenced this issue Feb 11, 2025
@QuLogic QuLogic added this to the v3.10.0-doc milestone Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants