black (still without mortimer)

This commit is contained in:
Noe Brucy
2023-01-30 12:12:14 +01:00
parent 8c3db9b7cb
commit 1a8db42d29
11 changed files with 474 additions and 99 deletions
+3 -3
View File
@@ -99,7 +99,7 @@ def plot_each_scale(S11a, wav_k, q, label, coherent=False, reso=1):
for scl in range(0, M):
plt.figure(figsize=(6, 6))
# determine bins (large scales should have less bins)
nbins = np.int(nsize ** 2.0 * (wav_k[scl] * reso) ** 2.0)
nbins = np.int(nsize**2.0 * (wav_k[scl] * reso) ** 2.0)
nbins = max(9, nbins)
nbins = min(500, nbins)
# calc histogram gaussian component w.r.t. its mean value (easier to compare)
@@ -192,8 +192,8 @@ def plot_components_power_spectrum(
# show resolution limits
# Gaussian part not accurate below levelmin due to the way AMR works
sim_res_eff = 2 ** lvlmin / 10
sim_res_lvl_min = 2 ** lvlmin
sim_res_eff = 2**lvlmin / 10
sim_res_lvl_min = 2**lvlmin
plt.plot(
[sim_res_lvl_min / nsize, sim_res_lvl_min / nsize],
[1e-6, 1e8],