matplotlib.figure.Figure.subplots_adjust#

Figure.subplots_adjust(left=None, bottom=None, right=None, top=None, wspace=None, hspace=None)[source]#

Adjust the subplot layout parameters.

Unset parameters are left unmodified; initial values are given by rcParams["figure.subplot.[name]"].

(Source code, png)

Parameters:
leftfloat, optional

The position of the left edge of the subplots, as a fraction of the figure width.

rightfloat, optional

The position of the right edge of the subplots, as a fraction of the figure width.

bottomfloat, optional

The position of the bottom edge of the subplots, as a fraction of the figure height.

topfloat, optional

The position of the top edge of the subplots, as a fraction of the figure height.

wspacefloat, optional

The width of the padding between subplots, as a fraction of the average Axes width.

hspacefloat, optional

The height of the padding between subplots, as a fraction of the average Axes height.

Examples using matplotlib.figure.Figure.subplots_adjust#

Marker reference

Marker reference

Contour image

Contour image

Programmatically control subplot adjustment

Programmatically control subplot adjustment

Broken axis

Broken axis

Adjacent subplots

Adjacent subplots

Artist customization in box plots

Artist customization in box plots

Boxplots

Boxplots

Plot a confidence ellipse of a two-dimensional dataset

Plot a confidence ellipse of a two-dimensional dataset

Violin plot basics

Violin plot basics

Bar of pie

Bar of pie

Align y-labels

Align y-labels

Multiline

Multiline

Text properties

Text properties

Create a colormap from a list of colors

Create a colormap from a list of colors

List of named colors

List of named colors

Line, Poly and RegularPoly Collection with autoscaling

Line, Poly and RegularPoly Collection with autoscaling

Colorbar with AxesDivider

Colorbar with AxesDivider

Axis Direction

Axis Direction

floating_axes features

floating_axes features

Ticklabel alignment

Ticklabel alignment

Ticklabel direction

Ticklabel direction

Simple axis direction

Simple axis direction

Simple axis tick label and tick directions

Simple axis tick label and tick directions

Simple axis pad

Simple axis pad

Simple Axisline

Simple Axisline

Radar chart (aka spider or star chart)

Radar chart (aka spider or star chart)

Topographic hillshading

Topographic hillshading

Multiple y-axis with Spines

Multiple y-axis with Spines

Evans test

Evans test

Buttons

Buttons

Menu

Menu

Image scaling using a RangeSlider

Image scaling using a RangeSlider

Slider

Slider

Snap sliders to discrete values

Snap sliders to discrete values

Textbox

Textbox

The Lifecycle of a Plot

The Lifecycle of a Plot

Artist tutorial

Artist tutorial

Styling with cycler

Styling with cycler

Choosing Colormaps in Matplotlib

Choosing Colormaps in Matplotlib

Text in Matplotlib

Text in Matplotlib

Annotations

Annotations