From 96deb889a4ac4ccf55303fc3919f9bae10e5169c Mon Sep 17 00:00:00 2001 From: Peter Shipley Date: Tue, 11 Mar 2014 23:26:52 -0700 Subject: [PATCH] for ploting power use --- bin/gnup_poweruse.txt | 46 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 bin/gnup_poweruse.txt diff --git a/bin/gnup_poweruse.txt b/bin/gnup_poweruse.txt new file mode 100644 index 0000000..1c9643f --- /dev/null +++ b/bin/gnup_poweruse.txt @@ -0,0 +1,46 @@ + +# generate data to plot +# plot_power.py > powerdata.dat +# +# Use gnuplot to plot data +# gnuplot -e "plot_data_file='powerdata'" gnup_poweruse.txt +# +# Output will be in file powerdata.png +# + + +name=plot_data_file + +set output name.".png" + +set terminal png size 2600,500 + +#set terminal png size 1920,500 +#set terminal png size 800,150 + +set datafile separator "\t" +set xlabel "time" +set ylabel "power" +set grid +#show mxtics +#set mxtics 10 +set key off +set pointsize 0.5 + +# 2014-03-09 13:24:21 24.2220 0.0970 2649.2700 0.0000 +set xtics rotate + +set xtics 3600 +set xdata time +set timefmt "%Y-%m-%d %H:%M:%S" +set format x "%a %b %d %H:%M" +#set xrange [ "2014-03-04 00:00:00" : ] +set xrange [ "2014-03-04 00:00:00" : ] + + +set style data lines +set autoscale y + +set title "Power Use" + +plot name.".dat" using 1:3 t "inbound" w lines, name.".dat" using 1:5 t "outbound"