Skip to content

Commit 4e34c42

Browse files
committed
Update plot_mag_color_1d_hist.py
1 parent b42c5e0 commit 4e34c42

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

diffhtwo/experimental/diagnostics/plot_mag_color_1d_hist.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -522,13 +522,13 @@ def plot_n(
522522
else:
523523
bins = color_bin_edges
524524

525-
obs_colors_mag1 = np.concatenate(
526-
[
527-
obs_colors_mag_q1[:, i],
528-
obs_colors_mag_smooth_ms1[:, i],
529-
obs_colors_mag_bursty_ms1[:, i],
530-
]
531-
)
525+
# obs_colors_mag1 = np.concatenate(
526+
# [
527+
# obs_colors_mag_q1[:, i],
528+
# obs_colors_mag_smooth_ms1[:, i],
529+
# obs_colors_mag_bursty_ms1[:, i],
530+
# ]
531+
# )
532532

533533
# diffndhist
534534
# bins_lo = bins[:-1]
@@ -667,7 +667,7 @@ def plot_n(
667667
####
668668

669669
ax[i].hist(
670-
obs_colors_mag1,
670+
obs_colors_mag1[:, i],
671671
weights=N_weights1 * (1 / lc_vol_mpc3),
672672
bins=bins,
673673
histtype="step",
@@ -676,16 +676,16 @@ def plot_n(
676676
label=label1,
677677
)
678678

679-
obs_colors_mag2 = np.concatenate(
680-
[
681-
obs_colors_mag_q2[:, i],
682-
obs_colors_mag_smooth_ms2[:, i],
683-
obs_colors_mag_bursty_ms2[:, i],
684-
]
685-
)
679+
# obs_colors_mag2 = np.concatenate(
680+
# [
681+
# obs_colors_mag_q2[:, i],
682+
# obs_colors_mag_smooth_ms2[:, i],
683+
# obs_colors_mag_bursty_ms2[:, i],
684+
# ]
685+
# )
686686

687687
ax[i].hist(
688-
obs_colors_mag2,
688+
obs_colors_mag2[:, i],
689689
weights=N_weights2 * (1 / lc_vol_mpc3),
690690
bins=bins,
691691
histtype="step",
@@ -709,7 +709,7 @@ def plot_n(
709709
ax[i].set_xlabel(dimension_labels[i])
710710

711711
ax[0].set_ylabel("number density [Mpc$^{-3}$]")
712-
ax[-1].legend(framealpha=0.5)
712+
ax[-1].legend(framealpha=0.5, loc="best")
713713
for i in range(0, n_bands):
714714
ax[i].set_ylim(1e-6, 3e-2)
715715
if i != 0:

0 commit comments

Comments
 (0)