Skip to content

Commit 22fdaad

Browse files
adding telescope names to plots
1 parent 759c127 commit 22fdaad

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

xga/products/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,9 +2830,10 @@ def view(self, figsize: Tuple = (10, 7), xscale: str = "log", yscale: str = "log
28302830
# Cycles through the component profiles of this aggregate profile, plotting them all
28312831
for p_ind, p in enumerate(self._profiles):
28322832
if p.obs_id != 'combined':
2833-
p_name = p.src_name + " {o}-{i}".format(o=p.obs_id, i=p.instrument.upper())
2833+
p_name = p.src_name + " {t}-{o}-{i}".format(t=p.telescope, o=p.obs_id,
2834+
i=p.instrument.upper())
28342835
else:
2835-
p_name = p.src_name
2836+
p_name = p.src_name + " {t}".format(t=p.telescope)
28362837

28372838
if p.type == "brightness_profile" and p.psf_corrected:
28382839
leg_label = p_name + " PSF Corrected"

0 commit comments

Comments
 (0)