spec/line_spec.rb in rubyvis-0.4.0 vs spec/line_spec.rb in rubyvis-0.4.1

- old
+ new

@@ -26,17 +26,17 @@ y = pv.Scale.linear(data, lambda {|d| d.y}).range(0, p_h-20); interpolations=["linear","step-before","step-after","polar","polar-reverse", "basis", "cardinal"] #/* The root panel. */ - vis = pv.Panel.new() - .width(w) - .height(h) - .bottom(20) - .left(20) - .right(10) - .top(5) + vis = pv.Panel.new(). +width(w). +height(h). +bottom(20). +left(20). +right(10). +top(5) interpolations.each_with_index do |inter,i| n=i%2 m=(i/2).floor panel=vis.add(Rubyvis::Panel). @@ -76,16 +76,16 @@ y = pv.Scale.linear(data, lambda {|d| d.y}).range(0, p_h-20); interpolations=["linear","step-before","step-after","polar","polar-reverse", "basis", "cardinal","monotone"] #/* The root panel. */ - vis = pv.Panel.new() - .width(w) - .height(h) - .bottom(20) - .left(20) - .right(10) - .top(5) + vis = pv.Panel.new(). +width(w). +height(h). +bottom(20). +left(20). +right(10). +top(5) interpolations.each_with_index do |inter,i| n=i%2 m=(i/2).floor panel=vis.add(Rubyvis::Panel). \ No newline at end of file