reset
set grid
set xdata time
set timefmt "%Y-%m-%d %H:%M:%S"
set format x "%Y-%m-%d\n%H:%M:%S"
set datafile separator ","
set autoscale xy
set xlabel "Date and Time (UTC)" font "Arial,10" textcolor "#0000FF"
set ylabel ".\nSignal (mV)" font "Arial,10" textcolor "#0000FF"
set xrange [*:*] noextend
set yrange [*:*] noextend
while(1) {
   #-----Visualizza il TITOLO-----
   titolo="AIR VOLTAGE Sensor No. 1 - Station in Faenza (RA, ITALY)"
   set title titolo font "Arial,16" textcolor rgbcolor "#D50000"

   #----Plot on PNG FILE 1 (COMPLETE)----
   ContaNumeroPunti=0
   set terminal jpeg font arial 10 size 1600,720
   set output "prova.jpg"
   plot "mVVonair.txt" using 1:(ContaNumeroPunti=ContaNumeroPunti+1,$2) with lines notitle linetype rgbcolor "#001080"
   unset output
   unset terminal

   #----Plot on the SCREEN---

   plot "mVVonair.txt" using 1:2 with lines notitle linetype rgbcolor "#001080"

   pause 4
   exit gnuplot
}



