Add splice_cycles to electrochemistry module

This commit is contained in:
rasmusvt 2021-11-05 20:13:22 +01:00
parent d95b670af7
commit b8cd8e81af
2 changed files with 64 additions and 19 deletions

View file

@ -315,7 +315,8 @@ def prettify_gc_plot(fig, ax, options=None):
############################# LEGEND #############################
##################################################################
ax.get_legend().remove()
if ax.get_legend():
ax.get_legend().remove()
return fig, ax