Closed ikahbasi closed 4 years ago
Thanks for this issue - it looks like it is happening when you have only one channel in the detection and only one axis is created. This should be a simple fix to change:
axes[0]...
to
if len(template) > 1:
axis = axes[0]
else:
axis = axes
axis....
This change should come in here: https://github.com/eqcorrscan/EQcorrscan/blob/f8665a833ff444cbe800e77c86a75ec26061d82a/eqcorrscan/utils/plotting.py#L1556
Your welcome. thanks, can I fix it in a pull request or you want to fix it?
A fix would be great, yes please.
Closed by #400
Describe the bug When I use party.lag_calc(plot=True) raise error. It works good when party.lag_calc(plot=False). To Reproduce
installed develop branch of eqcorrscan
anaconda
Expected behavior A clear and concise description of what you expected to happen.
Desktop (please complete the following information):