[plotter] no errorbar when yerr_kind is None

This commit is contained in:
Noe Brucy
2021-07-25 17:14:18 +02:00
parent aeb1f22e2c
commit 9ea9597b01
+2 -2
View File
@@ -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(