diff options
author | tlatorre <tlatorre@uchicago.edu> | 2020-10-12 15:11:12 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2020-10-12 15:11:12 -0500 |
commit | e8cdd83e751df2434d7354f92502d39d163b1dbe (patch) | |
tree | e5b85661f30dc691d8dae95d689ff03999bf49cb | |
parent | 3a9331f1c8b1725bdc1534ad9d76f967161a5925 (diff) | |
download | sddm-e8cdd83e751df2434d7354f92502d39d163b1dbe.tar.gz sddm-e8cdd83e751df2434d7354f92502d39d163b1dbe.tar.bz2 sddm-e8cdd83e751df2434d7354f92502d39d163b1dbe.zip |
update sbc plot to include grey band
-rwxr-xr-x | utils/chi2 | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -648,8 +648,11 @@ if __name__ == '__main__': fig = plt.figure() axes = [] for i, name in enumerate(FIT_PARS): - axes.append(plt.subplot(3,3,i+1)) - plt.hist(pull[i],bins=np.linspace(0,100,101),histtype='step',normed=True) + axes.append(plt.subplot(3,2,i+1)) + n, bins, patches = plt.hist(pull[i],bins=np.linspace(0,100,11),histtype='step') + expected = len(pull[i])/(len(bins)-1) + plt.axhline(expected,color='k',ls='--',alpha=0.25) + plt.axhspan(poisson.ppf(0.005,expected), poisson.ppf(0.995,expected), facecolor='0.5', alpha=0.25) plt.title(name) for ax in axes: despine(ax=ax,left=True,trim=True) |