EnO_A5-30-03.gplot 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. ##############################################
  2. # $Id: EnO_A5-30-03.gplot 16890 2018-06-20 09:34:38Z 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 wake low|high
  9. # 2015-10-17_08:38:08 device in0 low|high
  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 " "
  18. set ytics ("high" 1, "low" 0.85, "high" 0.75, "low" 0.6, "high" 0.55, "low" 0.4, "high" 0.35, "low" 0.2, "high" 0.15, "low" 0)
  19. set y2tics ("high" 1, "low" 0.85, "high" 0.75, "low" 0.6, "high" 0.55, "low" 0.4, "high" 0.35, "low" 0.2, "high" 0.15, "low" 0)
  20. set yrange [-0.1:1.1]
  21. set y2range [-0.1:1.1]
  22. set grid
  23. #FileLog 4:wake:0:$fld[3]=~"high"?1:0.85
  24. #FileLog 4:in0:0:$fld[3]=~"high"?0.75:0.6
  25. #FileLog 4:in1:0:$fld[3]=~"high"?0.55:0.4
  26. #FileLog 4:in2:0:$fld[3]=~"high"?0.35:0.2
  27. #FileLog 4:in3:0:$fld[3]=~"high"?0.15:0
  28. plot "<IN>" using 1:2 axes x1y1 title "Wake" ls l0 lw 1 with steps,\
  29. "<IN>" using 1:2 axes x1y1 title "Input 0" ls l1 lw 1 with steps,\
  30. "<IN>" using 1:2 axes x1y1 title "Input 1" ls l2 lw 1 with steps,\
  31. "<IN>" using 1:2 axes x1y1 title "Input 2" ls l3 lw 1 with steps,\
  32. "<IN>" using 1:2 axes x1y1 title "Input 3" ls l4 lw 1 with steps