Graph.pm
This module currently exports only one procedure. It is used to create a graphic using a data hash. The resulting graph is fairly simple. GD.pm is a prerequisite for this module.
Plot
This function takes a dataset and plots it into a graph. The resulting graph is written to a file. Output format is png.
Synopsis:
plot ( data => \%data, dimension => \@xyPair,
offset => $offset, filename => $name, format => $format );
Parameters:
- data
- the dataset as a hash reference. Keys are the x-values, mapped values are the y-values.
- dimension
- reference to array containing width and height of the resulting image, in pixels. Defaults to 640 X 320 px.
- offset
- The white space between the edge of the image and the axis.Defaults to 25.
- filename
- The name of the file to which the image is written. Defaults to STDOUT.
- format
- the output format of the generated image. Available formats are: png, jpg and gif. Defaults to png.