matplotlib.gridspec.SubplotParams#
- class matplotlib.gridspec.SubplotParams(left=None, bottom=None, right=None, top=None, wspace=None, hspace=None)[source]#
Bases:
object
Parameters defining the positioning of a subplots grid in a figure.
Defaults are given by
rcParams["figure.subplot.[name]"]
.- Parameters:
- leftfloat
The position of the left edge of the subplots, as a fraction of the figure width.
- rightfloat
The position of the right edge of the subplots, as a fraction of the figure width.
- bottomfloat
The position of the bottom edge of the subplots, as a fraction of the figure height.
- topfloat
The position of the top edge of the subplots, as a fraction of the figure height.
- wspacefloat
The width of the padding between subplots, as a fraction of the average Axes width.
- hspacefloat
The height of the padding between subplots, as a fraction of the average Axes height.
Examples using matplotlib.gridspec.SubplotParams
#
Programmatically control subplot adjustment
Programmatically control subplot adjustment