A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://matplotlib.org/stable/api/_as_gen/matplotlib.figure.Figure.set_layout_engine.html below:

matplotlib.figure.Figure.set_layout_engine — Matplotlib 3.10.3 documentation

matplotlib.figure.Figure.set_layout_engine#
Figure.set_layout_engine(layout=None, **kwargs)[source]#

Set the layout engine for this figure.

Parameters:
layout{'constrained', 'compressed', 'tight', 'none', LayoutEngine, None}

If a LayoutEngine instance, that instance will be used.

If None, the behavior is controlled by rcParams["figure.autolayout"] (default: False) (which if True behaves as if 'tight' was passed) and rcParams["figure.constrained_layout.use"] (default: False) (which if True behaves as if 'constrained' was passed). If both are True, rcParams["figure.autolayout"] (default: False) takes priority.

Users and libraries can define their own layout engines and pass the instance directly as well.

**kwargs

The keyword arguments are passed to the layout engine to set things like padding and margin sizes. Only used if layout is a string.

Examples using matplotlib.figure.Figure.set_layout_engine#

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4