472,988 Members | 2,675 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,988 software developers and data experts.

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 3225
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

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

Similar topics

1
by: Ben Hallert | last post by:
Hi guys, I've got an array question. I've searched, but maybe I just can't figure out the best way to phrase the question to Google or groups, so I'll try here. I've got a multi-dimensional...
1
by: Matthew Jakeman | last post by:
How can i create a multi dimensional array of "strings"? I've tried char * ; no joy Cheers for any help Matt
0
by: Zero | last post by:
1. how to draw two type of chart in same chart candlechart and line chart 2. how to custom x axis? 2. how to custom y axis in right side and left side?
8
by: per9000 | last post by:
Hi all, I have a two-dimensional array of data, f.x int's. We can imagine that the array is "really large". Now I want the data in it and store this in a one-dimensional array. The obvious...
0
by: benfly08 | last post by:
Hi, guys. I have a program to draw bar/pie chart based on the data i hard coded in it. However, my image comes with "BLACK" background color. I don't know how to fix this. The code snippet is...
4
by: flyaway888 | last post by:
hi, i need a program that takes an array of 6 numbers and compares these numbers to a two dimensional array of n columns (user decides a number between 1 and 18) and 6 rows. So i need to check if...
5
by: nelly0 | last post by:
developing a program that will manipulate noise levels (measured in decibels) that is collected by car manufacturers. These noise levels are produced at seven different speeds by a maximum of six...
8
by: desktop | last post by:
I am simulating a display that consists of 20x20 pixels. All pixels are per default white but I would like to be able to turn on some or all the pixels. My idea was to create a 3 dimensional...
152
by: vippstar | last post by:
The subject might be misleading. Regardless, is this code valid: #include <stdio.h> void f(double *p, size_t size) { while(size--) printf("%f\n", *p++); } int main(void) { double array = { {...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.