changeset 20:d4356465dce1

Set limits for battery voltages to make graph comparison easier
author Daniel O'Connor <darius@dons.net.au>
date Tue, 27 Feb 2018 16:12:36 +1030
parents 4d97dfb07169
children 65be58857ed4
files graph.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/graph.py	Fri Feb 23 16:20:04 2018 +1030
+++ b/graph.py	Tue Feb 27 16:12:36 2018 +1030
@@ -23,8 +23,8 @@
         self.annofn = annofn
 
 columns = [
-    Column('main_voltage', 'Battery Voltage', 'eprolog', 'Vdc'),
-    Column('aux_voltage', 'Aux Voltage', 'eprolog', 'Vdc'),
+    Column('main_voltage', 'Battery Voltage', 'eprolog', 'Vdc', (10, 30)),
+    Column('aux_voltage', 'Aux Voltage', 'eprolog', 'Vdc', (10, 30)),
     Column('battery_curr', 'Battery Current', 'eprolog', 'A'),
     Column('amp_hours', 'Battery Amp Hours', 'eprolog', 'Ah'),
     Column('state_of_charge', 'State of Charge', 'eprolog', '%', (0, 100), annofn = lambda xdata, ydata: 'DoD: %.1f' % (100 - ydata.min())),