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]"].

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 controlling subplot adjustment

Programmatically controlling subplot adjustment

Broken Axis

Broken Axis

Creating adjacent subplots

Creating 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 Commands

Text Commands

Creating a colormap from a list of colors

Creating 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

Thresholding an Image with RangeSlider

Thresholding an Image with RangeSlider

Slider

Slider

Snapping Sliders to Discrete Values

Snapping 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