# subplots {:.no_toc} ## Top Questions to [David Rotermund](mailto:davrot@uni-bremen.de) ## [matplotlib.pyplot.subplots](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots) ```python matplotlib.pyplot.subplots(nrows=1, ncols=1, *, sharex=False, sharey=False, squeeze=True, width_ratios=None, height_ratios=None, subplot_kw=None, gridspec_kw=None, **fig_kw) ``` > Create a figure and a set of subplots. > > This utility wrapper makes it convenient to create common layouts of subplots, including the enclosing figure object, in a single call. > **nrows**, **ncols** : int, default: 1 > > Number of rows/columns of the subplot grid.