From beac1d86844b03535684f9b5348422606986d91a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 2 Sep 2020 14:06:31 +0200 Subject: Fix --plot=P output when Amperage is available. Oops. --- bin/dlog-viewer | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/dlog-viewer b/bin/dlog-viewer index bdbf81c..2018622 100755 --- a/bin/dlog-viewer +++ b/bin/dlog-viewer @@ -183,14 +183,14 @@ def show_power_plot(dlog): handles = list() for slot in dlog.slots: - if "A" in slot: + if "W" in slot: (handle,) = plt.plot( - dlog.timestamps, slot["A"].data, "b-", label="P", markersize=1 + dlog.timestamps, slot["W"].data, "b-", label="P", markersize=1 ) handles.append(handle) (handle,) = plt.plot( dlog.timestamps, - running_mean(slot["A"].data, 10), + running_mean(slot["W"].data, 10), "r-", label="mean(P, 10)", markersize=1, -- cgit v1.2.3