black (still without mortimer)
This commit is contained in:
+3
-3
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user