Label
use Carp;
use GD;
use WWPlot;
use Fun;
This module defines labels for the graph objects (WWPlot).
$label1 = new Label($x_value, $y_value, $label_string, $label_color, @options)
$options is an array with (*'d defaults)
- one of 'left'*, 'center', 'right' (horizontal alignment)
- one of 'bottom', 'center', 'top'* (verical alignment)
- one of 'horizontal'*, 'vertical' (orientation)
- one of 'small', 'large', 'mediumbold'*, 'tiny', 'giant' (which gd font to use)
Note the alignment specifications are relative to the English reading of the string,
even when the orientation is vertical.
$new_label = new Label ( 0,0, 'origin','red','left', 'top')
@labels = $graph->lb($new_label);