Mercurial > ~darius > hgwebdir.cgi > adslstats
changeset 5:072489c80c51
Change from PNG to SVG
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Fri, 07 Feb 2014 20:36:13 +1030 |
parents | f50214bca1ae |
children | 671e66da2cb9 |
files | adslstats.py |
diffstat | 1 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/adslstats.py Fri Feb 07 20:35:59 2014 +1030 +++ b/adslstats.py Fri Feb 07 20:36:13 2014 +1030 @@ -169,7 +169,7 @@ def gengraph(): linkargs = ( - '-a', 'PNG', + '-a', 'SVG', '-X', '0', '--vertical-label', 'kbit/sec', '--slope-mode', @@ -194,7 +194,7 @@ 'LINE1:downstream#ff0000:Downstream') signalargs = ( - '-a', 'PNG', + '-a', 'SVG', '--vertical-label', 'dB', '--slope-mode', @@ -247,30 +247,30 @@ 'AREA:attendowndif#aaaaaa::STACK', 'LINE1:attendown#000000:Attenuation - Down') - rrdtool.graph("%s-hour-link.png" % (graphbasename), - '--width', '1024', + rrdtool.graph("%s-hour-link.svg" % (graphbasename), + '--width', '768', '--height', '256', '--start', 'end - 7d', '--end', 'now', *linkargs) - rrdtool.graph("%s-daily-link.png" % (graphbasename), - '--width', '1024', + rrdtool.graph("%s-daily-link.svg" % (graphbasename), + '--width', '768', '--height', '256', '--start', 'end - 365d', '--end', 'now', *linkargs) - rrdtool.graph("%s-hour-signal.png" % (graphbasename), - '--width', '1024', + rrdtool.graph("%s-hour-signal.svg" % (graphbasename), + '--width', '768', '--height', '256', '--start', 'end - 7d', '--end', 'now', *signalargs) - rrdtool.graph("%s-daily-signal.png" % (graphbasename), - '--width', '1024', + rrdtool.graph("%s-daily-signal.svg" % (graphbasename), + '--width', '768', '--height', '256', '--start', 'end - 365d', '--end', 'now',