Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. # plots a rotated map of a 5-column data matrix file
  2. # col 1 and 5 are filled with zeroes
  3. # 2-4 are data columns
  4.  
  5.  
  6. set term windows
  7. set title "ping history"
  8. unset key
  9. set tic scale 0
  10.  
  11. set cbrange [0:5]
  12. set cblabel "Score"
  13. unset cbtics
  14.  
  15. unset title
  16.  
  17. set view map
  18. unset colorbox
  19.  
  20. set ylabel 'ping test no.'
  21. set xtics ('ping' 1, 'timeout' 2, 'N/A' 3)
  22.  
  23. set xtics rotate
  24. set ytics rotate
  25.  
  26. set term png size 1400,2400 font 'Verdana,16'
  27. # set palette model RGB
  28. # set palette defined ( 0 "white", 25 "green", 35 "yellow", 50 "red", 1000 "red", 2000 "black" )
  29.  
  30. splot 'data.txt' matrix with image # dummy plotting
  31. set output 'pinggraph.png'
  32. set yrange[0:GPVAL_DATA_Y_MAX]
  33. splot 'data.txt' matrix with image
  34.  
  35.  
  36. unset output
  37.  
  38. set term windows
  39. !pinggraph.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement