domitry / nyaplot

interactive plots generator for Ruby
MIT License
219 stars 27 forks source link

Boxplot generated from different length of arrays #57

Closed domitry closed 8 years ago

domitry commented 8 years ago

moved from #53

domitry commented 8 years ago

@tansaku This code will work without any patch.

arr1 = 100.times.to_a.map{rand()}
arr2 = 200.times.to_a.map{rand()}
p = Plot.new
p.add_with_df(DataFrame.new({hoge: arr1}), :box, :hoge)
p.add_with_df(DataFrame.new({nya: arr2}), :box, :nya)
p