Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Commit f3493b8

Browse files
committed
graph drawing
1 parent 4d31c75 commit f3493b8

File tree

3 files changed

+4796
-4
lines changed

3 files changed

+4796
-4
lines changed

draw.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# SOFTWARE.
2323

2424
require 'slop'
25+
require 'csv'
2526

2627
opts = Slop.parse(ARGV, strict: true, help: true) do |o|
2728
o.integer '--width', default: 9
@@ -33,7 +34,11 @@
3334

3435
points = []
3536

36-
# Load CSV from summary
37+
CSV.read(opts[:summary]).each do |r|
38+
points << { x: r[0], y: r[1] }
39+
end
40+
41+
points = points.uniq
3742

3843
ymax = points.map { |p| p[:y] }.max
3944
xmax = points.map { |p| p[:x] }.max

paper/article.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ \section{Metric}
8484
\section{Empirical Results}
8585
\label{sec:results}
8686

87-
...
87+
\input{graph}
8888

8989
\section{Discussion}
9090
\label{sec:discussion}

0 commit comments

Comments
 (0)