import statsmodels.api as sm fig = sm.qqplot(diffs, line='s') plt.title('Quantiles of standard Normal vs. bookstrapped mean') plt.show()