Skip to content

[ENH]: function naming is inconsistent between, e.g. matplotlib.pyplot and matplotlib.axes.Axes #26207

Closed as not planned
@JohnAtl

Description

@JohnAtl

Problem

I'm always frustrated when: I need to call functions on, say, axes, and my initial attempts fail because a lot of the function names begin with set_, while their pyplot counterparts do not.

ax.set_xlabel('my label') vs. plt.xlabel('my label')
ax.set_title('The Title') vs. plt.title('The Title')

Proposed solution

Perhaps create aliases for the axes functions to match the pyplot functions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions