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

[ENH]: Add setter/getter methods for all keyword parameters to Figure.__init__ #24617

Open
@tacaswell

Description

@tacaswell

Problem

At least 2 of the arguments passed toFigure.__init__ do not have matchingget_{kwarg}/set_{kwarg} methods onFigure which makes usingfig.set(...) inconsistent with what can be done viaFigure(...).

xref#21549 which was motivated by this and includes an implementation of the solution (along with some additional refactoring).

Proposed solution

See#21549 for a majority of the implementation. cherry-picking commits from that branch and dropping the layout management refactoring is a very good start.

  • use alias mechanism forsize_inches ->figsize
  • addget/set_subplotparams
  • use alias mechanism fromlayout ->layout_engine
  • tests!
  • whats new entry

Labeling this as good first issue because it is limited scope and easy because there is an existing implementation. There will be a discussion of API consistency so I think familiarity with Matplotlib's explicit API would be very helpful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp