def eval_values
moves = []
comments.each_with_index do |c, i|
- moves << i*2 + 1 if c
+ moves << i*2 if c
end
moves.unshift 0
[moves, comments.compact.unshift(0)]
def eval_values
moves = []
comments.each_with_index do |c, i|
- moves << i*2 if c
+ moves << i*2+1 if c
end
moves.unshift 0
[moves, comments.compact.unshift(0)]
width = [black.comments.size, white.comments.size].max * 2 + 1
Gnuplot.open do |gp|
Gnuplot::Plot.new( gp ) do |plot|
- plot.terminal "svg" # or png
+ plot.terminal "svg size 800 500 fixed" # or png
plot.output to_svg_file(csa_file)
plot.title title