Hi, I've got two sets of data I'm displaying in a bar graph.  I'd like
to use two different colors for the different data.  I'm not sure how
to do this.

My code looks like:

@xdata1; # bunch of x values
@ydata1; # bunch of corresponding y values

@xdata2; # second set of x values I'd like to plot
@ydata2; # second set of y values

I then pass the data to the graph.

Doing it with one set works fine:

@data = ([...@xdata1], [...@ydata1]);

But, trying to do it with two data sets errors out.  I'd like to show
set 1 as one color and set 2 as another color.

I can't figure out a combination of @data = ([...@xdata1], [...@xdata2],
[...@ydata1], [...@ydata2]) to get it to work.

Anyone know how to do this?

Appreciate it.

Danny

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to