468,507 Members | 1,692 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,507 developers. It's quick & easy.

two dimensional array to draw chart

Hi,

I want to know what is the perl code to draw a chart in x and y by using
two dimensional arrays.

x from 0 to 5
y from 0 to 10

i want to draw 11 lines like this:

******

And then later on i may want to replace the widecard with 0 or 1.

thanks

Duc
Jul 12 '06 #1
1 3096
dle
1
Hi,

I want to know what is the perl code to draw a chart in x and y by using
two dimensional arrays.

x from 0 to 5
y from 0 to 10

i want to draw 11 lines like this:

******

And then later on i may want to replace the widecard with 0 or 1.

thanks

Duc
hi Duc,
You can use the GD and GD::graph modules of perl to do it easily for you but you have to make sure that you have GD and GD::graph installed .

Additionally, the GD will export the chart as image (gif, png ...) depends on what version of GD you have installed (version less than 1.19 support only gif, version 1.20-1.27 only support png) . Please read the CPAN website for more details

Here is some sample codes you may want to use : http://linuxgazette.net/issue83/padala.html

Cheers
Oct 20 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Ben Hallert | last post: by
1 post views Thread by Matthew Jakeman | last post: by
5 posts views Thread by nelly0 | last post: by
8 posts views Thread by desktop | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.