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

Idea: unite xlim and set_xlim to same function #15938

Closed as not planned
Closed as not planned
@kolibril13

Description

@kolibril13

I think it is confusing that the limits are normally set byxlim and in subplots byset_xlim.
Would it not be nice to use the same nameax.xlim(0,1) for subplots ?

importnumpyasnpimportmatplotlib.pyplotaspltplt.figure(1)plt.xlim(0,1)plt.plot([1,2])fix,ax=plt.subplots()ax.set_xlim(0,1)##  why not ax.xlim(0,1) ?ax.plot([1,2])

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp