You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Applications are open for the 2018 John Hunter Matplotlib Summer Fellowship. Apply now!
Version 2.2.2.post1752+g4b1f956cb
matplotlib
Fork me on GitHub

Table Of Contents

matplotlib.figure.SubplotParams

class matplotlib.figure.SubplotParams(left=None, bottom=None, right=None, top=None, wspace=None, hspace=None)[source]

A class to hold the parameters for a subplot.

All dimensions are fractions of the figure width or height. Defaults are given by rcParams["figure.subplot.[name]"].

Parameters:
left : float

The left side of the subplots of the figure.

right : float

The right side of the subplots of the figure.

bottom : float

The bottom of the subplots of the figure.

top : float

The top of the subplots of the figure.

wspace : float

The amount of width reserved for space between subplots, expressed as a fraction of the average axis width.

hspace : float

The amount of height reserved for space between subplots, expressed as a fraction of the average axis height.

update(left=None, bottom=None, right=None, top=None, wspace=None, hspace=None)[source]

Update the dimensions of the passed parameters. None means unchanged.

Examples using matplotlib.figure.SubplotParams