Skip to content
Snippets Groups Projects
Commit d3ae88b1 authored by David Verelst's avatar David Verelst
Browse files

h2_vs_hs2: also expose fig size for al_h2_channels plot method

parent d674bd11
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -921,7 +921,8 @@ class Plots(object): ...@@ -921,7 +921,8 @@ class Plots(object):
axes = self.set_axes_label_grid(axes) axes = self.set_axes_label_grid(axes)
return fig, axes return fig, axes
def all_h2_channels(self, results, labels, fpath, channels=None): def all_h2_channels(self, results, labels, fpath, channels=None,
size=(10,5)):
"""Results is a list of res (=HAWC2 results object)""" """Results is a list of res (=HAWC2 results object)"""
for chan, details in results[0].ch_dict.items(): for chan, details in results[0].ch_dict.items():
...@@ -931,7 +932,8 @@ class Plots(object): ...@@ -931,7 +932,8 @@ class Plots(object):
for res in results: for res in results:
resp.append([res.sig[:,0], res.sig[:,details['chi']]]) resp.append([res.sig[:,0], res.sig[:,details['chi']]])
fig, axes = self.new_fig(title=chan.replace('_', '\\_')) fig, axes = self.new_fig(title=chan.replace('_', '\\_'),
size=size)
try: try:
mplutils.time_psd(resp, labels, axes, alphas=[1.0, 0.7], NFFT=None, mplutils.time_psd(resp, labels, axes, alphas=[1.0, 0.7], NFFT=None,
colors=['k-', 'r-'], res_param=250, f0=0, f1=5, colors=['k-', 'r-'], res_param=250, f0=0, f1=5,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment