Loading python/drspine/drspine.py +0 −7 Original line number Diff line number Diff line Loading @@ -172,7 +172,6 @@ def plot_sqt(filename, **kwargs): result = read_datreat(filename) plt.figure() fitres = [] if model.startswith('diffusion'): print("# q dq D dD chi2 extra_pars") Loading Loading @@ -275,8 +274,6 @@ def plot_sqt_bin(filename, save=False, full_bw=False): Plot Q,tau binning """ plt.figure() if full_bw: d = _load_sqt_bin(filename, True) plt.plot(d[:,3], d[:,4], 'ro', label='Full BW') Loading Loading @@ -320,8 +317,6 @@ def plot_chi2(filename, chimax=100.0, nbins=101, ndf=19, full_bw=True): rchi2, _ = np.histogram(d[:,-3], bins=bins, density=norm) schi2, _ = np.histogram(d[:,-2], bins=bins, density=norm) plt.figure() _plot_chi2_histo(bins, rchi2, color='r', fmt='o', label='resolution %s' % label) _plot_chi2_histo(bins, schi2, color='b', fmt='o', label='signal %s' % label) _plot_chi2_theory(bins, ndf=ndf, color='k', fmt='.', label=r'$\chi^2 (NDF=%d)$' % ndf) Loading @@ -335,8 +330,6 @@ def plot_chi2(filename, chimax=100.0, nbins=101, ndf=19, full_bw=True): def plot_q(filename, bins=41, full_bw=False): d = _load_sqt_bin(filename, full_bw) plt.figure() #figsize=(12,9)) plt.hist(d[:,4], weights=d[:,11], bins=bins, histtype='step') plt.grid(True, which='both') plt.xlabel(r'Q [$\AA$]') Loading Loading
python/drspine/drspine.py +0 −7 Original line number Diff line number Diff line Loading @@ -172,7 +172,6 @@ def plot_sqt(filename, **kwargs): result = read_datreat(filename) plt.figure() fitres = [] if model.startswith('diffusion'): print("# q dq D dD chi2 extra_pars") Loading Loading @@ -275,8 +274,6 @@ def plot_sqt_bin(filename, save=False, full_bw=False): Plot Q,tau binning """ plt.figure() if full_bw: d = _load_sqt_bin(filename, True) plt.plot(d[:,3], d[:,4], 'ro', label='Full BW') Loading Loading @@ -320,8 +317,6 @@ def plot_chi2(filename, chimax=100.0, nbins=101, ndf=19, full_bw=True): rchi2, _ = np.histogram(d[:,-3], bins=bins, density=norm) schi2, _ = np.histogram(d[:,-2], bins=bins, density=norm) plt.figure() _plot_chi2_histo(bins, rchi2, color='r', fmt='o', label='resolution %s' % label) _plot_chi2_histo(bins, schi2, color='b', fmt='o', label='signal %s' % label) _plot_chi2_theory(bins, ndf=ndf, color='k', fmt='.', label=r'$\chi^2 (NDF=%d)$' % ndf) Loading @@ -335,8 +330,6 @@ def plot_chi2(filename, chimax=100.0, nbins=101, ndf=19, full_bw=True): def plot_q(filename, bins=41, full_bw=False): d = _load_sqt_bin(filename, full_bw) plt.figure() #figsize=(12,9)) plt.hist(d[:,4], weights=d[:,11], bins=bins, histtype='step') plt.grid(True, which='both') plt.xlabel(r'Q [$\AA$]') Loading