Skip to content

Commit

Permalink
fixed bug in plot_ave_std that throuws an error
Browse files Browse the repository at this point in the history
when plotting twinx total
  • Loading branch information
mpecchi committed Apr 17, 2024
1 parent 765811c commit 98fc35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gcms_data_analysis/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ def plot_ave_std(
hnd_ax.append(hhhh[0])
lab_ax.append(aaaa[0])
if show_total_in_twinx:
hnd_axt, lab_axt = myfig.axt[0].get_legend_handles_labels()
hnd_axt, lab_axt = myfig.axts[0].get_legend_handles_labels()
else:
hnd_axt, lab_axt = [], []
if legend_location == "outside": # legend goes outside of plot area
Expand Down

0 comments on commit 98fc35d

Please sign in to comment.