added simulation data

This commit is contained in:
2025-05-16 09:41:11 +02:00
parent 273b7a04ae
commit f1883a834b
239 changed files with 69 additions and 22 deletions

View File

@@ -5,7 +5,8 @@ from pathlib import Path
from plotstyle import plot_style, labels_params
data_path = Path('newdata3')
data_path = Path('data')
sims_path = data_path / 'simulations'
def sort_files(cell_name, all_files, n):
@@ -126,7 +127,7 @@ def plot_overn(ax, s, files, nmax=1e6, title=False):
def plot_chi2_overn(axs, s, cell_name):
print(cell_name)
files, nums = sort_files(cell_name,
data_path.glob(f'chi2-split-{cell_name}-*.npz'), 1)
sims_path.glob(f'chi2-split-{cell_name}-*.npz'), 1)
for k, n in enumerate([1e1, 1e2, 1e3, 1e6]):
plot_chi2(axs[k], s, files[nums.index(int(n))])
plot_overn(axs[-1], s, files)
@@ -141,7 +142,7 @@ if __name__ == '__main__':
fig, axs = plt.subplots(6, 6, cmsize=(s.plot_width, 0.9*s.plot_width),
width_ratios=[1, 1, 1, 1, 0, 1],
height_ratios=[1, 1, 1, 1, 0, 1])
fig.subplots_adjust(leftm=8, rightm=0.5, topm=2, bottomm=3.5,
fig.subplots_adjust(leftm=8, rightm=0.5, topm=2, bottomm=4,
wspace=1, hspace=0.8)
for ax in axs.flat:
ax.set_visible(False)
@@ -149,11 +150,11 @@ if __name__ == '__main__':
plot_chi2_overn(axs[k], s, cells[k])
cell_name = cells[0]
files, nums = sort_files(cell_name,
data_path.glob(f'chi2-split-{cell_name}-*.npz'), 1)
sims_path.glob(f'chi2-split-{cell_name}-*.npz'), 1)
plot_overn(axs[-1, 0], s, files, 1e7, True)
for k, alphastr in enumerate(['010', '030', '100']):
files, nums = sort_files(cell_name,
data_path.glob(f'chi2-noisen-{cell_name}-{alphastr}-*.npz'), 2)
sims_path.glob(f'chi2-noisen-{cell_name}-{alphastr}-*.npz'), 2)
plot_overn(axs[-1, k + 1], s, files, 1e7, True)
for k in range(4):
fig.common_yticks(axs[k, :4])