# HG changeset patch # User Matt Johnston # Date 1341072590 -28800 # Node ID 0a8639039453693dac09520eade75cb63033415f # Parent 7d243ba2dd397fc1c9f0c1138ae8a0b8ae9ccfcf Get rid of axes labels, tidy html diff -r 7d243ba2dd39 -r 0a8639039453 web/config.py --- a/web/config.py Fri Jun 29 22:46:59 2012 +0800 +++ b/web/config.py Sun Jul 01 00:09:50 2012 +0800 @@ -25,4 +25,4 @@ #GRAPH_FONT = "URW Gothic L" # determine by zooming in an image viewer -GRAPH_LEFT_MARGIN = 95 +GRAPH_LEFT_MARGIN = 63 diff -r 7d243ba2dd39 -r 0a8639039453 web/log.py --- a/web/log.py Fri Jun 29 22:46:59 2012 +0800 +++ b/web/log.py Sun Jul 01 00:09:50 2012 +0800 @@ -90,7 +90,7 @@ '-h', str(config.GRAPH_HEIGHT), '--slope-mode', '--border', '0', - '--vertical-label', 'Voltage', +# '--vertical-label', 'Voltage', '--y-grid', '0.1:1', '--dynamic-labels', '--grid-dash', '1:0', @@ -105,8 +105,9 @@ args += ['--font', 'WATERMARK:10:%s' % config.GRAPH_FONT] if have_volts: args += ['--right-axis', '10:-20', # matches the scalevolts CDEF above - '--right-axis-format', '%.2lf', - '--right-axis-label', 'Temperature'] + '--right-axis-format', '%.0lf', +# '--right-axis-label', 'Temperature' + ] rrdtool.graph(*args) return tempf.read() diff -r 7d243ba2dd39 -r 0a8639039453 web/views/top.tpl --- a/web/views/top.tpl Fri Jun 29 22:46:59 2012 +0800 +++ b/web/views/top.tpl Sun Jul 01 00:09:50 2012 +0800 @@ -1,8 +1,6 @@ - - - - + + + -
+