# File test/test_bar.rb, line 209 def generate_with_y_axis_increment(increment) g = Gruff::Bar.new g.title = "Y Axis Set to #{increment}" g.labels = { 0 => '5/6', 1 => '5/15', 2 => '5/24', 3 => '5/30', } g.y_axis_increment = increment g.data(:apples, [1, 0.2, 0.5, 0.7]) g.data(:peaches, [2.5, 2.3, 2, 6.1]) g.write("test/output/bar_y_increment_#{increment}.png") end