#!/bin/bash #gnuplot commands echo "set xdata time" > chartStorageFile.txt echo "set timefmt \"%Y-%m-%d %H:%M:%S\"" >> chartStorageFile.txt echo "show timefmt" >> chartStorageFile.txt echo "set title \"Chart for Cycle Count - Raw Temp\"" >> chartStorageFile.txt echo "set xrange [\"2017-10-04 13:00\":\"2017-10-04 15:00\"]" >> chartStorageFile.txt echo "set yrange [24:28]" >> chartStorageFile.txt #echo "set y2range [59:95]" >> chartStorageFile.txt echo "set ytic 20,0.5,30" >> chartStorageFile.txt #echo "set y2tic 59,3.6,95" >> chartStorageFile.txt echo "set pointsize 1.0" >> chartStorageFile.txt echo "set xlabel \" \"" >> chartStorageFile.txt echo "set ylabel \"Temp Deg C\"" >> chartStorageFile.txt #echo "set y2label \"Temp Deg F\"" >> chartStorageFile.txt echo "set terminal postscript eps enhanced" >> chartStorageFile.txt echo "set output \"TempRaw.eps\"" >> chartStorageFile.txt echo "plot 'ArrayData.txt' using 1:3 title 'Temperature in Lab' with linespoints pt 5" >> chartStorageFile.txt /usr/bin/gnuplot > load chartStorageFile.txt echo "set xdata time" > chartStorageFile.txt echo "set timefmt \"%Y-%m-%d %H:%M:%S\"" >> chartStorageFile.txt echo "show timefmt" >> chartStorageFile.txt echo "set title \"Chart for Cycle Count - Smooth Temp\"" >> chartStorageFile.txt echo "set xrange [\"2017-10-04 13:00\":\"2017-10-04 15:00\"]" >> chartStorageFile.txt echo "set yrange [24:28]" >> chartStorageFile.txt #echo "set y2range [59:95]" >> chartStorageFile.txt echo "set ytic 20,0.5,30" >> chartStorageFile.txt #echo "set y2tic 59,3.6,95" >> chartStorageFile.txt echo "set pointsize 1.0" >> chartStorageFile.txt echo "set xlabel \" \"" >> chartStorageFile.txt echo "set ylabel \"Temp Deg C\"" >> chartStorageFile.txt #echo "set y2label \"Temp Deg F\"" >> chartStorageFile.txt echo "set terminal postscript eps enhanced" >> chartStorageFile.txt echo "set output \"TempSmooth.eps\"" >> chartStorageFile.txt echo "plot 'ArrayData.txt' using 1:4 title 'Temperature in Lab' with linespoints pt 6" >> chartStorageFile.txt /usr/bin/gnuplot > load chartStorageFile.txt echo "set xdata time" > chartStorageFile.txt echo "set timefmt \"%Y-%m-%d %H:%M:%S\"" >> chartStorageFile.txt echo "show timefmt" >> chartStorageFile.txt echo "set title \"Chart for Cycle Count - Raw Derivative\"" >> chartStorageFile.txt echo "set xrange [\"2017-10-04 13:00\":\"2017-10-04 15:00\"]" >> chartStorageFile.txt echo "set yrange [-0.0015:+0.0015]" >> chartStorageFile.txt echo "set ytic -0.0015,0.0005,+0.0015" >> chartStorageFile.txt echo "set pointsize 1.0" >> chartStorageFile.txt echo "set xlabel \" \"" >> chartStorageFile.txt echo "set ylabel \"Temp Deg C\"" >> chartStorageFile.txt echo "set terminal postscript eps enhanced" >> chartStorageFile.txt echo "set output \"DerivativeRaw.eps\"" >> chartStorageFile.txt echo "plot 'ArrayData.txt' using 1:5 title 'Derivative Temp vs. Time' with linespoints pt 5" >> chartStorageFile.txt /usr/bin/gnuplot > load chartStorageFile.txt echo "set xdata time" > chartStorageFile.txt echo "set timefmt \"%Y-%m-%d %H:%M:%S\"" >> chartStorageFile.txt echo "show timefmt" >> chartStorageFile.txt echo "set title \"Chart for Cycle Count - Smooth Derivative\"" >> chartStorageFile.txt echo "set xrange [\"2017-10-04 13:00\":\"2017-10-04 15:00\"]" >> chartStorageFile.txt echo "set yrange [-0.0015:+0.0015]" >> chartStorageFile.txt echo "set ytic -0.0015,0.0005,+0.0015" >> chartStorageFile.txt echo "set pointsize 1.0" >> chartStorageFile.txt echo "set xlabel \" \"" >> chartStorageFile.txt echo "set ylabel \"Deriv DegC/S\"" >> chartStorageFile.txt echo "set terminal postscript eps enhanced" >> chartStorageFile.txt echo "set output \"DerivativeSmooth.eps\"" >> chartStorageFile.txt echo "plot 'ArrayData.txt' using 1:6 title 'Derivative Temp vs. Time' with linespoints pt 6" >> chartStorageFile.txt /usr/bin/gnuplot > load chartStorageFile.txt