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
#
Programmatically control subplot adjustment
Artist customization in box plots
Plot a confidence ellipse of a two-dimensional dataset
Create a colormap from a list of colors
Line, Poly and RegularPoly Collection with autoscaling
Simple axis tick label and tick directions
Radar chart (aka spider or star chart)
Image scaling using a RangeSlider
Snap sliders to discrete values
Choosing Colormaps in Matplotlib