> -----Original Message-----
> From: Aditi Gupta [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 10, 2006 4:16 AM
> To: Perl Beginners
> Subject: GD Graph
> 
> Hello Everybody,

Howdy,

> 
> Is there a way to plot each point separately on a 2D plot using
GD::Graph
> instead of passing the two dimensional array? I want to color
differently
> certain data points in the plot but I couln't find a way to do that.
> 
> Thanks in advance,
> Best Wishes
> Aditi

Read the GD::Graph documentation at search.cpan.org and you'll find
this:

*from http://search.cpan.org/~bwarfield/GDGraph-1.4305/Graph.pm*

dclrs (short for datacolours)

    This controls the colours for the bars, lines, markers, or pie
slices. This should be a reference to an array of colour names as
defined in GD::Graph::colour (perldoc GD::Graph::colour for the names
available).

    $graph->set( dclrs => [ qw(green pink blue cyan) ] );

    The first (fifth, ninth) data set will be green, the next pink, etc.

    A colour can be undef, in which case the data set will not be drawn.
This can be useful for cumulative bar sets where you want certain data
series (often the first one) not to show up, which can be used to
emulate error bars (see examples 1-7 and 6-3 in the distribution).

    Default: [ qw(lred lgreen lblue lyellow lpurple cyan lorange) ]

ry

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to