diff --git a/plotter.py b/plotter.py index da141c4..6d12bfb 100644 --- a/plotter.py +++ b/plotter.py @@ -1145,7 +1145,7 @@ class Plotter(Aggregator, BaseProcessor): x, y = x[mask], y[mask] elif "mean" in node_y: x = node_x * xunit_old.express(xunit) - y = node_y.mean * yunit_old.express(yunit) + y = node_y["mean"] * yunit_old.express(yunit) if yerr_kind == "std": std = node_y["std"] * yunit_old.express(yunit) @@ -1218,7 +1218,7 @@ class Plotter(Aggregator, BaseProcessor): color = colors[nml] except TypeError: color = colors(nml) - if yerr is None: + if yerr is None or yerr_kind is None: (base_line,) = plt.plot(x, y, label=label, color=color, **kwargs) else: base_line, _, _ = plt.errorbar(