0
0
Fork 0

Tidy up not needed variables

This commit is contained in:
Stormwind 2015-04-26 07:30:25 +02:00
parent e14e083901
commit 6916446089
1 changed files with 2 additions and 5 deletions

View File

@ -28,12 +28,9 @@ module Rubella
# @return RMagick::Image
#
def render
buckets = @data.dataset_length
columns = @data.length
# image size
x = columns*@field_size
y = buckets*@field_size
x = @data.length*@field_size # columns x field_size
y = @data.dataset_length*@field_size # buckets x field_size
# start drawing the damn thing
image = Magick::Image.new(x, y) { self.background_color = "white" }