Skip to content

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

Closed
@gdmcbain

Description

@gdmcbain

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>`.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions