Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: ax.xaxis.set_label(...) doesn't set the x-axis label #27971

Closed
Assignees
timhoffm
Milestone
@dstansby

Description

@dstansby

Bug summary

I'm used to using the Axis API likeax.xaxis.set_major_formatter(...) etc., so to be consistent it would be nice if one could doax.xaxis.set_label(...) instead ofax.set_xlabel(...). It seems likeax.xaxis.set_label(...) does not label the axis however.

Code for reproduction

importmatplotlib.pyplotaspltfig,ax=plt.subplots()ax.xaxis.set_label("x-label")

Actual outcome

Screenshot 2024-03-24 at 10 02 10

Expected outcome

Screenshot 2024-03-24 at 10 02 26

Additional information

No response

Operating system

No response

Matplotlib Version

3.8.3

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

conda

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp