Class Scruffy::Layers::Average
In: lib/scruffy/layers/average.rb
Parent: Base

Scruffy::Layers::Average

Author:Brasten Sager
Date:August 7th, 2006

An ‘average’ graph. This graph iterates through all the layers and averages all the data at each point, then draws a thick, translucent, shadowy line graph indicating the average values.

This only looks decent in SVG mode. ImageMagick doesn‘t retain the transparency for some reason, creating a massive black line. Any help resolving this would be useful.

Methods

Public Class methods

Public Instance methods

Render average graph.

Protected Instance methods

Override default generate_coordinates method to iterate through the layers and generate coordinates based on the average data points.

[Validate]