NAME
Imager::Plot::Axis - Axis handling of Imager::Plot.
SYNOPSIS
use Imager::Plot::Axis;
$Axis = Imager::Plot::Axis->new(Width => 200, Height => 180);
$Axis->AddDataSet($DataSet1);
$Axis->AddDataSet($DataSet2);
$Axis->Render(img => $img, Xoff => 20, Yoff=> 100);
DESCRIPTION
This part of Imager::Plot takes care of managing the graph area itself. It handles the grid, tickmarks, background in axis area and the data sets of course. All the data sets have to be given to the Axis object before rendering it so that everything is only written only once and scaling of axis can be done automatically. This also helps in doing tricks like shadows.
The size of the Axis area is controlled by the Width and Height parameters of the new
method. The border region/frame of the axis is considered to lie in the coordinate system. The default order of drawing is the following: Background image, grid, frame, ticks.
Note that the Axis does not render any labels by itself
AUTHOR
Arnar M. Hrafnkelsson, addi@umich.edu