# matplotlib.pyplot.subplots_adjust¶

matplotlib.pyplot.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, optionalThe position of the left edge of the subplots, as a fraction of the figure width. rightfloat, optionalThe position of the right edge of the subplots, as a fraction of the figure width. bottomfloat, optionalThe position of the bottom edge of the subplots, as a fraction of the figure height. topfloat, optionalThe position of the top edge of the subplots, as a fraction of the figure height. wspacefloat, optionalThe width of the padding between subplots, as a fraction of the average Axes width. hspacefloat, optionalThe height of the padding between subplots, as a fraction of the average Axes height.