Guest User

Untitled

a guest
Jun 21st, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. # Tell gnuplot to use tabs as the delimiter instead of spaces (default)
  2. set datafile separator '\t'
  3.  
  4. # skip first line with 'every ::2' in following commands
  5.  
  6. # First stats file to extract min time value
  7. # (must be done before setting that x will be a time data serie)
  8. stats "out.dat" every ::2 using 2 prefix "A"
  9.  
  10. # Output to a jpeg file
  11. set terminal png size 1280,720
  12.  
  13. # Set the aspect ratio of the graph
  14. set size 1, 1
  15.  
  16. # The file to write to
  17. set output "timeseries.png"
  18.  
  19. # The graph title
  20. set title "Benchmark testing"
  21.  
  22. # Where to place the legend/key
  23. set key left top
  24.  
  25. # Draw gridlines oriented on the y axis
  26. set grid y
  27.  
  28. # Specify that the x-series data is time data
  29. set xdata time
  30.  
  31. # Specify the *input* format of the time data
  32. set timefmt "%s"
  33.  
  34. # Specify the *output* format for the x-axis tick labels
  35. set format x "%s"
  36.  
  37. # Label the x-axis
  38. set xlabel 'seconds'
  39.  
  40. # Label the y-axis
  41. set ylabel "response time (ms)"
  42. set logscale y
  43.  
  44. # Plot the data
  45. #plot "out.dat" every ::2 using 2:5 title 'response time' with points
  46.  
  47. # Plot the data with an x-origin at 0
  48. plot "out.dat" every ::2 using ($2-A_min):5 title 'response time' with points
Add Comment
Please, Sign In to add comment