[plotter] no errorbar when yerr_kind is None
This commit is contained in:
+2
-2
@@ -1145,7 +1145,7 @@ class Plotter(Aggregator, BaseProcessor):
|
|||||||
x, y = x[mask], y[mask]
|
x, y = x[mask], y[mask]
|
||||||
elif "mean" in node_y:
|
elif "mean" in node_y:
|
||||||
x = node_x * xunit_old.express(xunit)
|
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":
|
if yerr_kind == "std":
|
||||||
std = node_y["std"] * yunit_old.express(yunit)
|
std = node_y["std"] * yunit_old.express(yunit)
|
||||||
@@ -1218,7 +1218,7 @@ class Plotter(Aggregator, BaseProcessor):
|
|||||||
color = colors[nml]
|
color = colors[nml]
|
||||||
except TypeError:
|
except TypeError:
|
||||||
color = colors(nml)
|
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)
|
(base_line,) = plt.plot(x, y, label=label, color=color, **kwargs)
|
||||||
else:
|
else:
|
||||||
base_line, _, _ = plt.errorbar(
|
base_line, _, _ = plt.errorbar(
|
||||||
|
|||||||
Reference in New Issue
Block a user