diff --git a/flavio/plots/plotfunctions.py b/flavio/plots/plotfunctions.py index a4d8fbab..3c85e20f 100644 --- a/flavio/plots/plotfunctions.py +++ b/flavio/plots/plotfunctions.py @@ -54,7 +54,7 @@ def error_budget_pie(err_dict, other_cutoff=0.03): small_frac.append(frac) if small_frac: labels.append('other') - fracs.append(np.sum(small_frac)) + fracs.append(sum(small_frac)) def my_autopct(pct): # use individual errors as labels return r'{p:.2g}\%'.format(p=np.sqrt(100*pct*var_tot))