/home/jaubrey/webwork//pg_TRUNK/lib/Label.pm

From WeBWorK

Jump to: navigation


NAME

        Label

SYNPOSIS

        use Carp;
        use GD;
        use WWPlot;
        use Fun;

DESCRIPTION

This module defines labels for the graph objects (WWPlot).

Usage

        $label1 = new Label($x_value, $y_value, $label_string, $label_color, @justification)
        $justification   =   one of ('left', 'center', 'right) and ('bottom', 'center', 'top')
                             describes the position of the ($x_value, $y_value) within the string.
                             The default is 'left', 'top'

Example

        $new_label = new Label ( 0,0, 'origin','red','left', 'top')
        @labels    = $graph->lb($new_label);