Revision 1232
plot.rb | ||
---|---|---|
65 | 65 |
} |
66 | 66 |
|
67 | 67 |
IO.popen('gnuplot', 'w') { |p| |
68 |
p.puts("plot '#{file0}' using 1:2 with linespoints") |
|
69 |
p.puts("replot '#{file1}' using 1:2 with linespoints") |
|
68 |
p.puts("plot '#{file0}' using 1:2 with linespoints title 'Left'") |
|
69 |
p.puts("replot '#{file1}' using 1:2 with linespoints title 'Right'") |
|
70 |
p.puts("set xlabel 'Station encoders'") |
|
71 |
p.puts("set ylabel 'Robot encoders'") |
|
70 | 72 |
|
71 | 73 |
p.puts("pause -1"); |
72 | 74 |
|
Also available in: Unified diff