Forum archive 2000-2006

Michael Gage - Label.pm

Michael Gage - Label.pm

by Arnold Pizer -
Number of replies: 0
inactiveTopicLabel.pm topic started 5/22/2000; 10:41:27 PM
last post 5/22/2000; 10:41:27 PM
userMichael Gage - Label.pm  blueArrow
5/22/2000; 10:41:27 PM (reads: 2467, responses: 0)


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);
File path = /ww/webwork/pg/lib/Label.pm

<| Post or View Comments |>