[ENH]: Support partial figsize setting · Issue #31400 · matplotlib/matplotlib · GitHub
Skip to content

[ENH]: Support partial figsize setting #31400

Description

@timhoffm

Problem

It's sometimes handy to adjust figure height without modifying width. #28758 (comment)

Proposed solution

From #28758 (comment)

Support figure(... ,figsize=...) with tuples where one of x/y can be None with the meaning: Take that component from rcParams["figure.figsize"]; i.e. figsize=(None, 3) is short for figsize=(rcParams["figure.figsize"][0], 3).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions