summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-09-02 14:06:31 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-09-02 14:06:31 +0200
commitbeac1d86844b03535684f9b5348422606986d91a (patch)
treea1bb8761fe6a14da674dda1b581a1378189ee21c
parent5d71b3b646ee5910724383891e102e291215733d (diff)
Fix --plot=P output when Amperage is available. Oops.
-rwxr-xr-xbin/dlog-viewer6
1 files 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,