Advertisement
Guest User

Untitled

a guest
Feb 4th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/gnuplot -persist
  2.  
  3. set xlabel "x/y time"
  4. set ylabel "x/y values"
  5. set style line 1 lt 1 pt 7 ps 1
  6. set style line 2 lt 2 pt 7 ps 1
  7. set style line 3 lt 3 pt 7 ps 1
  8. set style line 4 lt 4 pt 7 ps 1
  9.  
  10. data_file = "data.csv"
  11. out_file  = "out.csv"
  12.  
  13. # Input file contains comma-separated values fields
  14. set datafile separator ","
  15.  
  16. plot                                \
  17.     data_file using ($1)                    \
  18.     title "x"                       \
  19.     with linespoints linestyle 1,               \
  20.     data_file using ($2)                    \
  21.     title "y"                       \
  22.     with linespoints linestyle 2,               \
  23.     out_file using ($1)                 \
  24.     title "x_{LPF2}"                    \
  25.     with linespoints linestyle 3,               \
  26.     out_file using ($2)                 \
  27.     title "y_{LPF2}"                    \
  28.     with linespoints linestyle 4,               \
  29.  
  30. pause mouse close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement