diff web/log.py @ 362:8fea6144951b

improve graphs
author Matt Johnston <matt@ucc.asn.au>
date Sun, 24 Jun 2012 23:48:11 +0800
parents a1aa4176ca2c
children 62112fc2af21
line wrap: on
line diff
--- a/web/log.py	Sun Jun 24 14:18:35 2012 +0800
+++ b/web/log.py	Sun Jun 24 23:48:11 2012 +0800
@@ -62,12 +62,15 @@
         '-h', str(config.GRAPH_HEIGHT),
         '--slope-mode',
         '--border', '0',
+        '--y-grid', '1:1',
+        '--grid-dash', '1:0',
+        '--color', 'GRID#00000000',
+        '--color', 'MGRID#aaaaaa',
         '--color', 'BACK#ffffff',
-        '--alt-y-grid',
         '--imgformat', 'PNG'] \
         + graph_args
     if config.GRAPH_FONT:
-        args += ['--font', 'DEFAULT:0:%s' % config.GRAPH_FONT]
+        args += ['--font', 'DEFAULT:11:%s' % config.GRAPH_FONT]
     print>>sys.stderr, args
     rrdtool.graph(*args)
     return tempf.read()