Sha256: 4b4435470a56889e8539ff3c004cb28f07794732f8b60c03a6f003994a42414c

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

#!/usr/bin/ruby
$:.unshift(File.dirname(__FILE__)+'/../lib/')
require 'benchmark'
require 'statsample'
n=100
a=n.times.map {|i| rand(10)+i}.to_scale
b=n.times.map {|i| rand(10)+i}.to_scale
sp=Statsample::Graph::Scatterplot.new(a,b, :width=>200, :height=>200)
rb=ReportBuilder.new do |b|
  b.parse_element(sp)
end  
puts rb.to_text

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
statsample-0.16.0 examples/scatterplot.rb