Skip to content

[Doc]: layout="none" for figure constructor? #25223

Closed
@rcomer

Description

@rcomer

Documentation Link

https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.figure.html

Problem

Suppose you have constrained layout turned on in general via rcParams, but want to not use it for a particular figure. This seems to work

import matplotlib.pyplot as plt

plt.rcParams["figure.constrained_layout.use"] = True
fig = plt.figure(layout="none")
print(fig.get_layout_engine())
None

but layout="none" is not documented as a valid option in either pyplot.figure or the Figure constructor.

Suggested improvement

Should layout="none" be documented as a valid option?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions