EnO_A5-30-02.gplot 716 B

123456789101112131415161718192021222324252627
  1. ##############################################
  2. # $Id: EnO_A5-30-02.gplot 9593 2015-10-22 19:06:37Z 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 contact open|closed
  9. set terminal png transparent size <SIZE> crop
  10. set output '<OUT>.png'
  11. set title '<TL>'
  12. set xdata time
  13. set timefmt "%Y-%m-%d_%H:%M:%S"
  14. set xlabel " "
  15. set ylabel "Contact"
  16. set y2label ""
  17. set ytics ("closed" 1, "open" 0)
  18. set y2tics ("closed" 1, "open" 0)
  19. set yrange [-0.1:1.1]
  20. set y2range [-0.1:1.1]
  21. set grid
  22. #FileLog 4:contact:0:$fld[3]=~"closed"?1:0
  23. plot "<IN>" using 1:2 axes x1y1 notitle ls l0 lw 1 with steps