plot-csv-large-all.sh 440 B

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