# HG changeset patch # User Matt Johnston # Date 1341072590 -28800 # Node ID fed6738be1abcaf1dfda7bbd3a8f01d5ab9f9650 # Parent 55710361804b0b2ff7e9e736ef64183364041399 Get rid of axes labels, tidy html diff -r 55710361804b -r fed6738be1ab 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 55710361804b -r fed6738be1ab 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 55710361804b -r fed6738be1ab 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 @@ - - - - + + + -
+