Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Doc]: Wrapper breaks code source in docs #25318

@ianhi

Description

@ianhi

Documentation Link

https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.xaxis_inverted.html#matplotlib.axes.Axes.xaxis_inverted

Problem

If you click the source link it leads you to this:

def wrapper(self, *args, **kwargs):
return get_method(self)(*args, **kwargs)

which is confusing.

Suggested improvement

It should probably link to

xaxis_inverted = _axis_method_wrapper("xaxis", "get_inverted")
instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationkeepItems to be ignored by the “Stale” Github Action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions