def qqplot(data, dist=stats.norm, distargs=(), a=0, loc=0, scale=1, fit=False,
           line=None, ax=None):
    probplot = ProbPlot(data, dist=dist, distargs=distargs,
                         fit=fit, a=a, loc=loc, scale=scale)
    fig = probplot.qqplot(ax=ax, line=line)
    return fig
Q-Q plot of the quantiles of x versus the quantiles/ppf of a distribution.
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/graphics/gofplots.py/qqplot