diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-09-02 14:06:31 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-09-02 14:06:31 +0200 |
commit | beac1d86844b03535684f9b5348422606986d91a (patch) | |
tree | a1bb8761fe6a14da674dda1b581a1378189ee21c | |
parent | 5d71b3b646ee5910724383891e102e291215733d (diff) |
Fix --plot=P output when Amperage is available. Oops.
-rwxr-xr-x | bin/dlog-viewer | 6 |
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, |