def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True, subplot_kw=None, gridspec_kw=None, **fig_kw):
 fig = figure(**fig_kw)
 axs = fig.subplots(nrows=nrows, ncols=ncols, sharex=sharex, sharey=sharey, squeeze=squeeze, subplot_kw=subplot_kw, gridspec_kw=gridspec_kw)
 return (fig, axs)

def subplots ( nrows = 1 , ncols = 1 , sharex = False , sharey = False , squeeze = True , subplot_kw = None , gridspec_kw = None , ** fig_kw ) : fig = figure ( ** fig_kw ) axs = fig . subplots ( nrows = nrows , ncols = ncols , sharex = sharex , sharey = sharey , squeeze = squeeze , subplot_kw = subplot_kw , gridspec_kw = gridspec_kw ) return ( fig , axs )
create a figure and a set of subplots this utility wrapper makes it convenient to create common layouts of subplots .