Re: [dev] network usage graphs

From: hiro <23hiro_AT_googlemail.com>
Date: Sat, 24 Dec 2011 02:00:47 +0100

Here's the gnuplot src for a start, but you have to add up your data
lines before giving them to gnuplot so that they will stack above each
other in the graph. Also, I think the order of writing them is
important so that they overlap in the right way [tm].
Deleting the first line of my log is currently done with sed 1d
<original.dat>temp; mv temp original.dat. Is there no better way?

set term png font "Arial,10" size 320,240 x000000 x00FF00 x00FF00
set output "log.png"
set border 0
set noytics
set lmargin 0
set rmargin 0
set tmargin 0
set bmargin 0
set format y "%2.2f"
set xrange [xrange1:xrange2]
set yrange [0:123000]
set key left font "Arial,10"
set grid
plot 'log.dat' using 8:7 title 'ack' with filledcurves y1=0.0 lt rgb "#00dd00",\
     'log.dat' using 8:6 title 'web' with filledcurves y1=0.0 lt rgb "#dd0000",\
     'log.dat' using 8:5 title 'def' with filledcurves y1=0.0 lt rgb "#dddd00",\
     'log.dat' using 8:4 title 'p2p' with filledcurves y1=0.0 lt rgb "#00dddd",\
     'log.dat' using 8:3 title 'cut' with filledcurves y1=0.0 lt rgb "#dd00dd",\
     'log.dat' using 8:2 title 'voip' with filledcurves y1=0,0 lt rgb "#0000dd"
Received on Sat Dec 24 2011 - 02:00:47 CET

This archive was generated by hypermail 2.3.0 : Sat Dec 24 2011 - 02:12:03 CET