Skip to content

Commit 283b53a

Browse files
authored
Merge pull request #133 from vuillaut/magic_ref_label
fix labels magic sens plot
2 parents 68bf82d + 297cd71 commit 283b53a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ctaplot/plots/plots.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,8 +2206,9 @@ def plot_sensitivity_magic_performance(key='lima_5off', ax=None, **kwargs):
22062206
magic_table['e_err_lo'] = magic_table['e_center'] - magic_table['e_min']
22072207
magic_table['e_err_hi'] = magic_table['e_max'] - magic_table['e_center']
22082208

2209-
kwargs.setdefault('ls', '')
2210-
kwargs.setdefault('label', f'MAGIC {key}')
2209+
if 'ls' not in kwargs and 'linestyle' not in kwargs:
2210+
kwargs['ls'] = ''
2211+
kwargs.setdefault('label', f'MAGIC {key} (Aleksić et al, 2016)')
22112212

22122213
k = 'sensitivity_' + key
22132214
ax.errorbar(
@@ -2218,6 +2219,8 @@ def plot_sensitivity_magic_performance(key='lima_5off', ax=None, **kwargs):
22182219
**kwargs
22192220
)
22202221

2222+
ax.set_xlabel(r'$E_R$ [TeV]')
2223+
ax.set_ylabel(r'Flux Sensitivity $[erg.cm^{-2}.s^{-1}]$')
22212224
ax.set_xscale('log')
22222225
ax.set_yscale('log')
22232226
ax.grid(True, which='both')

0 commit comments

Comments
 (0)