Class | Scruffy::Layers::Average |
In: |
lib/scruffy/layers/average.rb
|
Parent: | Base |
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.
Override default generate_coordinates method to iterate through the layers and generate coordinates based on the average data points.