matplotlib.figure.SubplotParams

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

Bases: object

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:
leftfloat

The left side of the subplots of the figure.

rightfloat

The right side of the subplots of the figure.

bottomfloat

The bottom of the subplots of the figure.

topfloat

The top of the subplots of the figure.

wspacefloat

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

hspacefloat

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

update(self, 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

© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.2.2/api/_as_gen/matplotlib.figure.SubplotParams.html