0
0
Fork 0

The output classes now use the new storage interface

This commit is contained in:
Stormwind 2015-04-26 07:16:48 +02:00
parent 4458bc9be3
commit e14e083901
2 changed files with 6 additions and 6 deletions

View File

@ -67,8 +67,8 @@ module Rubella
# @return String
#
def render
buckets = @data.data[0].length
# columns = @data.data.length
buckets = @data.dataset_length
# columns = @data.length
# image size
# x = columns*@field_size
@ -78,7 +78,7 @@ module Rubella
ascii_arr = []
0.upto(buckets-1).each { |i| ascii_arr[i] = "" }
@data.data.each do |point|
@data.each do |point|
i = 0
point.reverse.each do |part|
part = (part*10).to_i

View File

@ -28,8 +28,8 @@ module Rubella
# @return RMagick::Image
#
def render
buckets = @data.data[0].length
columns = @data.data.length
buckets = @data.dataset_length
columns = @data.length
# image size
x = columns*@field_size
@ -39,7 +39,7 @@ module Rubella
image = Magick::Image.new(x, y) { self.background_color = "white" }
i = 0
@data.data.each do |point|
@data.each do |point|
j = 0
point.reverse.each do |part|
# draw a red rectangle on the white background