Skip to content

Instantly share code, notes, and snippets.

@donalod
Created October 21, 2014 15:38
Show Gist options
  • Save donalod/8901c6437dc393c0e9e8 to your computer and use it in GitHub Desktop.
Save donalod/8901c6437dc393c0e9e8 to your computer and use it in GitHub Desktop.
GNUPlotConf
set terminal png size 2048, 800
set title "Normal SNR = 20 - 50dBm"
set output "snr_190914-141014.png"
set xdata time
set timefmt "%Y-%m-%d_%H.%M.%S"
set xlabel "Time"
set key center center
set grid
set bmargin at screen 0.2
set xtics format "%b %d -- %H:%M"
set xtics 14400 rotate by -90 font "Helvetica, 10"
set xlabel "Date/Time of Day of Interest"
set ylabel "SNR dB (Also discrete values valid for PoE Voltage, Noise Floor, Wattage)"
set y2label "SNR dB (Also discrete values valid for PoE Voltage, Noise Floor, Wattage)"
#set y2label "PoE Watts (802.3af) drawn by Access Point"
set y2tics mirror
#set palette model RGB defined ( 0 'red', 1 'green' )
#set cbrange [ -30 : 60 ]
set yrange [ -100 : 60 ]
#set y2range [ 0 : 16 ]
set xrange ["2014-09-19_00.00.00":"2014-10-14_24.00.00"]
set xzeroaxis linetype -1 linewidth 4 lc -1
set termoption dashed
color(y) = y <= 20 ? 16711680 : 256000
plot 'k' using 1:2:(color($2)) with points linecolor rgb variable pointtype 16 lt 1 title 'SNR', 'p1.master' using 1:2 with points lt 8 title 'PoE Watts drawn by AP' , 'u2' using 1:2 with linespoints lt 13 lc 3 lw 2 title 'Bldg. Volt 1=Normal, 5=Over', 'p1.master' using 1:3 with linespoints lt 20 title 'PoE Volt from EX2200', 'n' using 1:2 with linespoints lt 9 title 'Noise Floor'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment