1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
# Project : ipv6calc/logstats
# File : example_gnuplot.cmd
# Version : $Id: example_gnuplot.cmd,v 1.2 2003/06/15 15:08:42 peter Exp $
# Copyright : 2003 by Peter Bieringer <pb (at) bieringer.de>
#
# Command file for gnuplot
set terminal png small color
set output "result.png"
set title "Webserver access statistics"
set data style linespoints
set xlabel "Date"
set timefmt "%Y%m"
set yrange [ 1 : ]
set logscale y
set xdata time
set ylabel "Requests"
set format x "%m/%Y"
set grid
set key left
plot 'data' using 1:4 t 'IPv6' lw 2, 'data' using 1:($2) t 'ALL' lw 2
reset
set terminal png small color
set output "result-percent.png"
set title "Webserver access statistics (relative)"
set data style linespoints
set xlabel "Date"
set timefmt "%Y%m"
set yrange [ 0.01 : 100 ]
set logscale y
set xdata time
set ylabel "Requests (Percent)"
set format x "%m/%Y"
set grid
set key left
plot 'data' using 1:($4 / $2 * 100) t 'IPv6' lw 2, 'data' using 1:($3 / $2 * 100 ) t 'IPv4' lw 2
reset
|