EnO_contact.gplot 695 B

123456789101112131415161718192021222324252627
  1. ##############################################
  2. # $Id: EnO_contact.gplot 9546 2015-10-19 19:47:11Z klaus-schauer $
  3. # Display a contact 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 closed|open
  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 ("open" 1, "closed" 0)
  18. set y2tics ("open" 1, "closed" 0)
  19. set yrange [-0.1:1.1]
  20. set y2range [-0.1:1.1]
  21. set grid
  22. #FileLog 3:.*:0:$fld[2]=~"open"?1:0
  23. plot "<IN>" using 1:2 axes x1y1 notitle ls l0 lw 1 with steps