plot-csv-small-pcap-file-stream-vs-http.sh 479 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. #
  3. #
  4. if [ "$1" = "" ]; then
  5. echo "call with location of csv file."
  6. exit 1;
  7. fi
  8. DRAW="boxes"
  9. gnuplot << EOF
  10. set datafile separator ","
  11. set terminal png size 1024,768
  12. set output "$1.png"
  13. set title "$1 ticks"
  14. set key autotitle columnhead
  15. set yrange [:]
  16. set xrange [:]
  17. set logscale y
  18. plot "$1" using :32 with $DRAW, \
  19. "" using :54 with $DRAW, \
  20. "" using :42 with points
  21. EOF
  22. RESULT=$?
  23. if [ "$RESULT" = "0" ]; then
  24. echo "PNG $1.png written"
  25. fi