fht.gnuplot 980 B

1234567891011121314151617181920212223242526272829303132333435
  1. ############################
  2. # Display the measured temperature and actuator data logged
  3. # as described in the 04_log config file.
  4. # Copy your logfile to fht.log and then call
  5. # gnuplot fht.gnuplot
  6. # (i.e. this file)
  7. # Note: The webfrontend pgm2 and pgm3 does this for you.
  8. # More examples can be found in the webfrontend/pgm2 directory.
  9. ###########################
  10. # Uncomment the following if you want to create a postscript file
  11. # and comment out the pause at the end
  12. #set terminal postscript color "Helvetica" 11
  13. #set output 'fht.ps'
  14. set xdata time
  15. set timefmt "%Y-%m-%d_%H:%M:%S"
  16. set xlabel " "
  17. set ylabel "Temperature (Celsius)"
  18. set y2label "Actuator (%)"
  19. set ytics nomirror
  20. set y2tics
  21. set y2label "Actuator (%)"
  22. set title 'FHT log'
  23. plot \
  24. "< awk '/measured/{print $1, $4}' fht.log"\
  25. using 1:2 axes x1y1 title 'Measured temperature' with lines,\
  26. "< awk '/actuator/{print $1, $4+0}' fht.log"\
  27. using 1:2 axes x1y2 title 'Actuator (%)' with lines\
  28. pause 100000