The output classes now use the new storage interface
This commit is contained in:
parent
4458bc9be3
commit
e14e083901
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue