matplotlib 3.5.1

ParametersBackRef
tight_layout(*, pad=1.08, h_pad=None, w_pad=None, rect=None)

To exclude an artist on the Axes from the bounding box calculation that determines the subplot parameters (i.e. legend, or annotation), set a.set_in_layout(False) for that artist.

Parameters

pad : float, default: 1.08

Padding between the figure edge and the edges of subplots, as a fraction of the font size.

h_pad, w_pad : float, default: *pad*

Padding (height/width) between edges of adjacent subplots, as a fraction of the font size.

rect : tuple (left, bottom, right, top), default: (0, 0, 1, 1)

A rectangle in normalized figure coordinates into which the whole subplots area (including labels) will fit.

Adjust the padding between and around subplots.

See Also

.Figure.set_tight_layout
.pyplot.tight_layout

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.signal._filter_design.butter matplotlib.figure.Figure.tight_layout scipy.signal._fir_filter_design.minimum_phase scipy.interpolate._polyint.approximate_taylor_polynomial scipy.signal._filter_design.ellip scipy.signal._filter_design.cheby1 matplotlib.pyplot.tight_layout scipy.signal._waveforms.sweep_poly scipy.signal._bsplines.spline_filter

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/pyplot.py#2300
type: <class 'function'>
Commit: