EnO_A5-30-05.gplot 860 B

1234567891011121314151617181920212223242526272829
  1. ##############################################
  2. # $Id: EnO_A5-30-05.gplot 9631 2015-10-25 05:58:45Z klaus-schauer $
  3. # Display contact sensor log
  4. # FileLog definition:
  5. # define FileLog_device FileLog ./log/device-%Y.log device
  6. #
  7. # Logfile record example:
  8. # 2015-10-17_08:38:08 device error|event|heartbeat
  9. # 2015-10-17_08:38:08 device voltage 2.9
  10. set terminal png transparent size <SIZE> crop
  11. set output '<OUT>.png'
  12. set title '<TL>'
  13. set xdata time
  14. set timefmt "%Y-%m-%d_%H:%M:%S"
  15. set xlabel " "
  16. set ylabel "Contact"
  17. set y2label "U/V"
  18. set ytics ("error" 1, "event" 0.5, "heartbeat" 0)
  19. set yrange [-0.1:1.1]
  20. set y2range [0:3.5]
  21. set grid
  22. #FileLog 3:.*:0:$fld[2]=~"error"?1:$fld[2]=~"event"?0.5:0
  23. #FileLog 4:voltage:0:
  24. plot "<IN>" using 1:2 axes x1y1 title 'Contact' ls l0 lw 1 with points,\
  25. "<IN>" using 1:2 axes x1y2 title 'Voltage' ls l1 lw 1 with lines