Loading etl/prs/prs_2d_kinematics.py +5 −2 Changes for etl/prs/prs_2d_kinematics.py: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -126,14 +126,17 @@ def plot_2d_clustered_kinematics(source, species): } ax.set_xlabel('dRA [pc]', fontsize=fontsize_medium) ax.set_ylabel('dDec [pc]', fontsize=fontsize_medium) ax.set_title(f'{source} ({species_map[species]})', fontsize=fontsize_large) if source == 'G332.96': _source = 'G332' else: _source = source ax.set_title(f'{_source} ({species_map[species]})', fontsize=fontsize_large) ax.set_aspect('equal') plot_radius_pc = 0.8 ax.set_xlim(plot_radius_pc, -plot_radius_pc) ax.set_ylim(-plot_radius_pc, plot_radius_pc) # ---> FIX: Only plot the legend on the first source (G332.96), and put it in the lower right <--- if source == 'G332.96': ax.legend(loc='upper right', fontsize=fontsize_small, framealpha=0.9) Loading etl/stg/stg_check_feather.py +2 −0 Changes for etl/stg/stg_check_feather.py: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -60,6 +60,8 @@ def compare_tp_feather_spectralcube(source, species, ap_radius_arcsec=40.0, data diff_k = spec_f_k - spec_tp_k_interp # --- Plotting --- if source == 'G332.96': source = 'G332' fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(8, 6), sharex=True, gridspec_kw={"height_ratios": [3, 1]}) ax1.plot(freq_f, spec_tp_k_interp, label="Single Dish (TP)", color="#e41a1c", lw=2.0, linestyle="--") Loading Loading
etl/prs/prs_2d_kinematics.py +5 −2 Changes for etl/prs/prs_2d_kinematics.py: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -126,14 +126,17 @@ def plot_2d_clustered_kinematics(source, species): } ax.set_xlabel('dRA [pc]', fontsize=fontsize_medium) ax.set_ylabel('dDec [pc]', fontsize=fontsize_medium) ax.set_title(f'{source} ({species_map[species]})', fontsize=fontsize_large) if source == 'G332.96': _source = 'G332' else: _source = source ax.set_title(f'{_source} ({species_map[species]})', fontsize=fontsize_large) ax.set_aspect('equal') plot_radius_pc = 0.8 ax.set_xlim(plot_radius_pc, -plot_radius_pc) ax.set_ylim(-plot_radius_pc, plot_radius_pc) # ---> FIX: Only plot the legend on the first source (G332.96), and put it in the lower right <--- if source == 'G332.96': ax.legend(loc='upper right', fontsize=fontsize_small, framealpha=0.9) Loading
etl/stg/stg_check_feather.py +2 −0 Changes for etl/stg/stg_check_feather.py: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -60,6 +60,8 @@ def compare_tp_feather_spectralcube(source, species, ap_radius_arcsec=40.0, data diff_k = spec_f_k - spec_tp_k_interp # --- Plotting --- if source == 'G332.96': source = 'G332' fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(8, 6), sharex=True, gridspec_kw={"height_ratios": [3, 1]}) ax1.plot(freq_f, spec_tp_k_interp, label="Single Dish (TP)", color="#e41a1c", lw=2.0, linestyle="--") Loading