diff --git a/machine_learning_hep/plotting/plot_jetsubstructure_run3.py b/machine_learning_hep/plotting/plot_jetsubstructure_run3.py index 59f3a3fca7..aa6d25ee2a 100644 --- a/machine_learning_hep/plotting/plot_jetsubstructure_run3.py +++ b/machine_learning_hep/plotting/plot_jetsubstructure_run3.py @@ -1231,7 +1231,8 @@ def plot(self): 1.0, ) setup_legend(leg) - leg.AddEntry(list_syst_all[-1], " ", "FP") + if list_syst_all: + leg.AddEntry(list_syst_all[-1], " ", "FP") can.cd(2) leg.Draw() gStyle.SetErrorX(0.5) # reset default width