From 838118970865e88edeb7b9d4c1d9eeba48bac0c5 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 23 Jun 2023 13:24:35 +0100 Subject: [PATCH] refactor: plot_piechart slightly simplified. --- pyerrors/obs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyerrors/obs.py b/pyerrors/obs.py index d1e4f5c7..e32ca821 100644 --- a/pyerrors/obs.py +++ b/pyerrors/obs.py @@ -627,7 +627,7 @@ class Obs: if save: fig1.savefig(save) - return dict(zip(self.e_names, sizes)) + return dict(zip(labels, sizes)) def dump(self, filename, datatype="json.gz", description="", **kwargs): """Dump the Obs to a file 'name' of chosen format.