Re: Perl GD graph help

2010-10-26 Thread Martin Spinassi
On Tue, 2010-10-26 at 14:11 +0800, sync wrote: > On Tue, Oct 26, 2010 at 10:08 AM, Shawn H Corey wrote: > > > On 10-10-25 09:20 PM, sync wrote: > > > >> I tried to google something about that and found the perl module called > >> GD::Graph > >> can

Re: Perl GD graph help

2010-10-25 Thread sync
On Tue, Oct 26, 2010 at 10:08 AM, Shawn H Corey wrote: > On 10-10-25 09:20 PM, sync wrote: > >> I tried to google something about that and found the perl module called >> GD::Graph >> can create the graph . But i met the problem that i don't know how to >&g

Re: Perl GD graph help

2010-10-25 Thread Shawn H Corey
On 10-10-25 09:20 PM, sync wrote: I tried to google something about that and found the perl module called GD::Graph can create the graph . But i met the problem that i don't know how to get the CPU load . GD::Graph creates graphs but for a real-time representation you should use Tk,

Perl GD graph help

2010-10-25 Thread sync
Hi ,all : I am new to this , and I want to write the code to monit the CPU load situation and produce the graph about that . I tried to google something about that and found the perl module called GD::Graph can create the graph . But i met the problem that i don't know how to get th

Re: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-11 Thread alekto
Hi! I did what you told me, but I just gets this error msg in return when I am trying to execute the script: Invalid data set: 0 at ./test.pl line 105, line 1. This error is referring to this line in my script: my $gd = $graph->plot($ydata) or die $graph->error; I seems like th

Re: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-09 Thread alekto
. The x and y axes should be correct, but there is some thing wrong whit the $xydata I think, I have also been trying to only print the @ydata but the histograms will not show. Any suggestions? #!/usr/bin/perl # Needed pkg use Getopt::Std; use strict; use warnings; use GD::Graph::bars; # Global

Re: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-07 Thread alekto
:34 PM, alekto wrote: > Hi guys! > Tnx for answering! Of course it was the /misplacing of the \ that caused my > error;) > But after changing this error I still get an other error msg like this: > > Invalid data set: 1 at ./bars.pl line 90, line 1. > > which is referrin

Re: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-07 Thread alekto
Hi guys! Tnx for answering! Of course it was the /misplacing of the \ that caused my error;) But after changing this error I still get an other error msg like this: Invalid data set: 1 at ./bars.pl line 90, line 1. which is referring to this line in my script: my $gd = $graph->plot(\...@ar

AW: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-06 Thread Thomas Bätzler
alekto asked: > I manage to generate the array from the input file, but it seems like > there is something wrong with my subroutine at the end, I have been > using the examples at cpan.org as an templat for this subroutine. > Following is the error msg, as well as the complete script. > hostname$

Re: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-06 Thread Jins Thomas
Hi alekto, My guess Main error is due to my $gd = $graph->plot(/@array) (Line 90) Did u meant \ (bless operator) instead of / . Same is being repeated in printHistogram(/@array Also hope last } was for printHistogram subroutine was copy paste problem while emailing. Other than that this lo

Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-06 Thread alekto
Hi, I got this scrip that is suppsed to use the use the Getopt::Std; and GD::Graph::bars; to input generate an array from a file (age). With this array, the GD::Graph::bars is going to create a subroutine printHistogram() which generates a png file based on a supplied array. The signature of

Re: GD::Graph::bars - multiple x-axis data sets

2009-01-15 Thread Danny Miller
ure 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 have

Re: GD::Graph::bars - multiple x-axis data sets

2009-01-15 Thread Raymond Wan
ng y values @xdata2; # second set of x values I'd like to plot @ydata2; # second set of y values I have to admit that I have never used GD::Graph before. However, something about what you are describing does not seem right. A bar graph doesn't usually have two sets of x-values. Just to

GD::Graph::bars - multiple x-axis data sets

2009-01-14 Thread Danny Miller
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

GD::Graph - two independent y axes

2008-10-24 Thread Yaacov Yoseph Weiss
Hi, I found the option for using 2 y axis in GD::Graph, (using the 'two_axes' option, and y1_,y2_, options.) However, I found that this only allows the two axes to have different scales, but not be completely independent. For example, if I want the first of the axis to run betwee

Re: Display GD graph on the screen.

2008-09-29 Thread Funny Perl
On Sep 29, 11:05 pm, [EMAIL PROTECTED] (Sandy lone) wrote: > On Mon, Sep 29, 2008 at 4:05 PM, Funny Perl <[EMAIL PROTECTED]> wrote: > > I just start to learn perl on GD graph. My OS is Linux. > > > I got a example, but how can I display the graph on the screen ? use &g

Re: Display GD graph on the screen.

2008-09-29 Thread Mr. Shawn H. Corey
On Mon, 2008-09-29 at 23:05 +0800, Sandy lone wrote: > Generally we use GD to print the graphs to web browsers. > I didn't know if it can print to a TK application, but we use it > widely on CGI programming. Tk can display images using a canvas widget. If you use Gtk, consider using Glade for you

Re: Display GD graph on the screen.

2008-09-29 Thread Mr. Shawn H. Corey
On Mon, 2008-09-29 at 01:05 -0700, Funny Perl wrote: > I just start to learn perl on GD graph. My OS is Linux. > > I got a example, but how can I display the graph on the screen ? use > Gtk2 or something else? The quickest way is to use system and the open command for your deskto

Re: Display GD graph on the screen.

2008-09-29 Thread Sandy lone
On Mon, Sep 29, 2008 at 4:05 PM, Funny Perl <[EMAIL PROTECTED]> wrote: > I just start to learn perl on GD graph. My OS is Linux. > > I got a example, but how can I display the graph on the screen ? use > Gtk2 or something else? > Generally we use GD to print the graphs to w

Display GD graph on the screen.

2008-09-29 Thread Funny Perl
I just start to learn perl on GD graph. My OS is Linux. I got a example, but how can I display the graph on the screen ? use Gtk2 or something else? Hereis is the code: #!/usr/bin/perl -w use GD; my $gd = GD::Image->new(400,300); my $white = $gd->colorAllocate(255, 255, 255); my

Re: GD::Graph

2007-07-15 Thread Tom Phoenix
On 7/15/07, Mathew <[EMAIL PROTECTED]> wrote: Is this module really as simple as it appears? You've got the source code? Yes, it's exactly as simple as its source code, and exactly that complex. :-) --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

GD::Graph

2007-07-15 Thread Mathew
Is this module really as simple as it appears? -- Keep up with my goings on at http://theillien.blogspot.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

GD::Graph and alpha blending

2006-12-17 Thread Daniel Kasak
Hi all. I've been considering moving our graphing functionality to GD::Graph. I haven't used it at all yet. I read at http://tools.devchannel.org/devtoolschannel/04/04/13/1429242.shtml?tid=29&tid=46 that you can do alpha blending ( which is a requirement ), but I haven't

Re: create arrays for GD::Graph::lines

2006-11-23 Thread Beginner
-values (the years)? > > I understood you to mean that there may be gaps in the data, which is another > reason why I said you needed to store hashes of data relating to the years. It > also looked from your code like the data wasn't very well behaved, as you had > allowed for a

Re: create arrays for GD::Graph::lines

2006-11-22 Thread Dr.Ruud
"Beginner" schreef: > On 22 Nov 2006 at 15:14, Beginner wrote: >> The data looks like it is suited to a hash but GD::lines wants the >> data passed to in as arrays references ([EMAIL PROTECTED]). That is one array >> with all the "ancode_n" and foreach code, an array of all the yearly >> values. I

Re: create arrays for GD::Graph::lines

2006-11-22 Thread Beginner
> > I understood you to mean that there may be gaps in the data, which is another > reason why I said you needed to store hashes of data relating to the years. It > also looked from your code like the data wasn't very well behaved, as you had > allowed for a given year being repe

Re: create arrays for GD::Graph::lines

2006-11-22 Thread Rob Dixon
e cases. If it's always complete and in reverse-year order then things are a lot easier. This program keeps your original data format and produces the same output as my previous effort. Cheers, Rob use strict; use warnings; use GD::Graph::lines; use CGI qw/:standard/; my $q = new CGI; my

Re: create arrays for GD::Graph::lines

2006-11-22 Thread Rob Dixon
Beginner wrote: Hi, I am trying to create a line graph with GD::Graph::Lines. I have data being passed by CGI in the format: "ancode_1" = "ADV " "ADV_2006" = "117216 " "ADV_2005" = "104776 " "ancode_2" = "BAP

Re: create arrays for GD::Graph::lines

2006-11-22 Thread Beginner
> 'ADV ' => [ >'117216', >'104776', > ] > 'BAP ' => [ >'0', >'270', >], > > But I am stuck trying to get it out into n number of arrays that I > can pass to GD. I don'

create arrays for GD::Graph::lines

2006-11-22 Thread Beginner
Hi, I am trying to create a line graph with GD::Graph::Lines. I have data being passed by CGI in the format: "ancode_1" = "ADV " "ADV_2006" = "117216 " "ADV_2005" = "104776 " "ancode_2" = "BA

RE: GD::Graph and integer on the Y-axis

2006-10-03 Thread john
::Graph and integer on the Y-axis -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Do you know how to define that all the numbers on the Y > axis should be integers? You have to set the format of the y-axis like so: $graph->set(y_number_format => '%d'); Where '$gra

Re: GD::Graph and integer on the Y-axis

2006-10-02 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Do you know how to define that all the numbers on the Y axis should be integers? You have to set the format of the y-axis like so: $graph->set(y_number_format => '%d'); Where '$graph' is the GD::Graph object you prev

GD::Graph and integer on the Y-axis

2006-10-02 Thread john
Do you know how to define that all the numbers on the Y axis should be integers?

GD::Graph and integer on the Y-axis

2006-10-02 Thread john
Do you know how to define that all the numbers on the Y axis should be integers?

GD::Graph...crashing...

2006-09-20 Thread Nagasamudram, Prasanna Kumar
Hi All I'm trying to use the GD module. for plotting a graph on WINDOWS but my Perl script is crashing. Here is the piece of code which is crashing [Perl Command Line Interpreter has encountered a problem and needs to close. We are sorry for the inconvenience.] use GD::

RE: Re[2]: Problem with GD::Graph

2006-09-16 Thread john
Well, I installed the newest version of GD and now it works! Thanks. -Original Message- From: Owen Cook [mailto:[EMAIL PROTECTED] Sent: Saturday, September 16, 2006 1:07 AM To: john Cc: beginners@perl.org Subject: RE: Re[2]: Problem with GD::Graph -- On Fri, 15 Sep 2006, john wrote

RE: Re[2]: Problem with GD::Graph

2006-09-15 Thread Owen Cook
-- On Fri, 15 Sep 2006, john wrote: > Where could I find the installed DG version since it's no visible in the GD > man page. > /usr/bin/gdlib-config --version but you might want to read /usr/bin/gdlib-config --help Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Re[2]: Problem with GD::Graph

2006-09-15 Thread john
Where could I find the installed DG version since it's no visible in the GD man page. -Original Message- From: Owen Cook [mailto:[EMAIL PROTECTED] Sent: Friday, September 15, 2006 1:15 PM To: john Cc: beginners@perl.org Subject: RE: Re[2]: Problem with GD::Graph On Fri, 15 Sep

RE: Re[2]: Problem with GD::Graph

2006-09-15 Thread Owen Cook
ED] > Sent: Friday, September 15, 2006 12:47 PM > To: john > Cc: beginners@perl.org > Subject: RE: Re[2]: Problem with GD::Graph > > > On Fri, 15 Sep 2006, john wrote: > > > Well, I did that > > > > Putting the use GD::Graph::area in the beginning >

RE: Re[2]: Problem with GD::Graph

2006-09-15 Thread john
: RE: Re[2]: Problem with GD::Graph On Fri, 15 Sep 2006, john wrote: > Well, I did that > > Putting the use GD::Graph::area in the beginning > and now the error is > > perl: relocation error: > /usr/lib/perl5/site_perl/5.8.0/i486-linux/auto/GD/GD.so: undefined symbol: > g

RE: Re[2]: Problem with GD::Graph

2006-09-15 Thread Owen Cook
On Fri, 15 Sep 2006, john wrote: > Well, I did that > > Putting the use GD::Graph::area in the beginning > and now the error is > > perl: relocation error: > /usr/lib/perl5/site_perl/5.8.0/i486-linux/auto/GD/GD.so: undefined symbol: > gdFontGetLarge Well it would

RE: Re[2]: Problem with GD::Graph

2006-09-15 Thread john
Well, I did that Putting the use GD::Graph::area in the beginning and now the error is perl: relocation error: /usr/lib/perl5/site_perl/5.8.0/i486-linux/auto/GD/GD.so: undefined symbol: gdFontGetLarge -Original Message- From: Alexandru Maximciuc [mailto:[EMAIL PROTECTED] Sent

Re: Problem with GD::Graph

2006-09-15 Thread Mumia W.
On 09/15/2006 02:24 AM, john wrote: Hi all I have installed the GD::Graph module and I tried to run the example using this code [...] my $graph = GD::Graph::chart->new(400, 300); [...] I haven't installed GD::Graph yet, but the description provided by 'aptitude' doe

RE: Problem with GD::Graph

2006-09-15 Thread Owen Cook
On Fri, 15 Sep 2006, john wrote: > I replace the crusial line with the one below > > my $graph = GD::Graph::area->new(400, 300); > > and I received the error > > Can't locate object method "new" via package "GD::Graph::area" (perhaps you >

RE: Problem with GD::Graph

2006-09-15 Thread john
I replace the crusial line with the one below my $graph = GD::Graph::area->new(400, 300); and I received the error Can't locate object method "new" via package "GD::Graph::area" (perhaps you forgot to load "GD::Graph::area"?) at test2.pl line 11 I thi

Re: Problem with GD::Graph

2006-09-15 Thread Owen Cook
-- On Fri, 15 Sep 2006, john wrote: > Hi all > > > > I have installed the GD::Graph module and I tried to run the example using > this code > > > > > > #!/usr/bin/perl -w > > > > use GD::Graph; > > > > @data =

Problem with GD::Graph

2006-09-15 Thread john
Hi all I have installed the GD::Graph module and I tried to run the example using this code #!/usr/bin/perl -w use GD::Graph; @data = ( ["1st","2nd","3rd","4th","5th","6th","7th", "8th", &qu

Re: ImageMagick to GD::Graph

2006-02-09 Thread JupiterHost.Net
I BioKid wrote: Hi all, Hello, I have an Image::Magick code to generate a sample graph simple point plot> The program will read a file which contain a list of x-y values and plot it. I am posting this code for those who need to map dynamic code on a static graph, Please rewrite it wit

ImageMagick to GD::Graph

2006-02-09 Thread I BioKid
Hi all, I have an Image::Magick code to generate a sample graph simple The program will read a file which contain a list of x-y values and plot it. I am posting this code for those who need to map dynamic code on a static graph, I would appreciate if any of you can convert it for me in to GD

RE: GD Graph

2006-01-10 Thread Ryan Frantz
> -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 &

GD Graph

2006-01-10 Thread Aditi Gupta
Hello Everybody, 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

Re: ok GD::Graph question

2005-11-17 Thread Chris Devers
On Thu, 17 Nov 2005, Michael Gargiullo wrote: > I've been driving myself crazy with this for a few hours, any help > would be great. 1. Read the documents. 2. Write some code. 3. Show us the code you tried. Please demonstrate 1, 2, and 3, and we will be happy to assist you :-) -- Chris D

ok GD::Graph question

2005-11-17 Thread Michael Gargiullo
Morning, I need to create a graph that has it's x axis in the middle to show difference between x axis base ( an average of scores I have) and the plotted point or bar (which will be x% above or below the base). Any idea how to accomplish this? Time for some ascii art for a better explanation (

Re: AoA for GD::Graph

2005-06-05 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: > I am trying to build an array that can be used with GD::Graph > to show the graphical representation of a MySQL query. This module > only takes in an AoA like this: > > @data = ([1,2,3,4],[10,20,30,40]); # @arr[$x vals], [$y vals] > > It then

AoA for GD::Graph

2005-06-05 Thread ahuber
I am trying to build an array that can be used with GD::Graph to show the graphical representation of a MySQL query. This module only takes in an AoA like this: @data = ([1,2,3,4],[10,20,30,40]); # @arr[$x vals], [$y vals] It then takes that array and parses it into a graph like this: my

Re: GD::Graph

2004-06-08 Thread Tarun Dua
On Mon, 2004-06-07 at 21:35, Josimar Nunes de Oliveira wrote: > > Microsoft Windows 2000 [Versão 5.00.2195] > (C) Copyright 1985-2000 Microsoft Corp. > > C:\Documents and Settings\Administrador>ppm install GD-Graph > Error: Package 'GD-Graph' not found. Pleas

Re: GD::Graph

2004-06-07 Thread Josimar Nunes de Oliveira
Dear Tarun, I just can´t get it. What may be wrong? Microsoft Windows 2000 [Versão 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\Documents and Settings\Administrador>ppm install GD-Graph Error: Package 'GD-Graph' not found. Please 'search' for it first. C:

Re: GD::Graph

2004-06-07 Thread Tarun Dua
Josimar Nunes De Oliveira wrote: > Does GD::Graph module exist for windows platform? Yes > Where can I find it? ppm install GD-Graph -Tarun -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn

GD::Graph

2004-06-06 Thread Josimar Nunes de Oliveira
Hello, Does GD::Graph module exist for windows platform? Where can I find it? Thanks, Josimar -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Nevermind WAs: Re: Problems with Inheritance in GD::Graph

2003-12-17 Thread drieux
On Dec 17, 2003, at 11:06 AM, Dan Anderson wrote: Nevermind. I'm an idiot. I fogot to use GD::Graph::bars. :: hits head against wall:: Minor technical nit, you should hire a professional hitPerKin to do that... Respect the Guild System!!! major dumb question, but was the error me

RE: Problems with Inheritance in GD::Graph

2003-12-17 Thread Dan Anderson
On Wed, 2003-12-17 at 14:04, Ed Christian wrote: > Dan Anderson wrote: > > I am trying out GD::Graph, which is a CPAN module that creates a > > method new, and then for each graph type inherits that new method (I > > think -- I had to open the code). > > > >

Nevermind WAs: Re: Problems with Inheritance in GD::Graph

2003-12-17 Thread Dan Anderson
Nevermind. I'm an idiot. I fogot to use GD::Graph::bars. :: hits head against wall:: Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: Problems with Inheritance in GD::Graph

2003-12-17 Thread Bob Showalter
Dan Anderson wrote: > I am trying out GD::Graph, which is a CPAN module that > creates a method > new, and then for each graph type inherits that new method (I > think -- I > had to open the code). > > So I tried calling: > > my $graph = GD::Graph::bars->new(400,

RE: Problems with Inheritance in GD::Graph

2003-12-17 Thread Ed Christian
Dan Anderson wrote: > I am trying out GD::Graph, which is a CPAN module that creates a > method new, and then for each graph type inherits that new method (I > think -- I had to open the code). > > So I tried calling: > > my $graph = GD::Graph::bars->new(400, 600);

Problems with Inheritance in GD::Graph

2003-12-17 Thread Dan Anderson
I am trying out GD::Graph, which is a CPAN module that creates a method new, and then for each graph type inherits that new method (I think -- I had to open the code). So I tried calling: my $graph = GD::Graph::bars->new(400, 600); And I get the error: Can't locate object method &

Re: use GD::Graph::linespoints;

2003-07-14 Thread Wiggins d'Anconia
Jerry Preston wrote: Hi! I am trying to change the background color of my graph, I do not quite understand how to do it. I have read the doc a number of times an I am missing it. I am looking for a working examples. Are there any on the web? Didn't see any responses, a Google Search turned up t

use GD::Graph::linespoints;

2003-07-12 Thread Jerry Preston
Hi! I am trying to change the background color of my graph, I do not quite understand how to do it. I have read the doc a number of times an I am missing it. I am looking for a working examples. Are there any on the web? Thanks, Jerry

GD::Graph::lines - x axis tick labels - using time

2002-10-09 Thread L Parkes
alues are never displayed. My environment is RH7.2, perl v. 5.6.0. Please reply to this email address as well as posting to the group. TIA, Lance #!/usr/bin/perl use GD::Graph::lines; @data = ( [ "15:44", "15:49", "15:54", "15:59", "16:04&quo

RE: GD::Graph::pie -- adding text with GD::Text:Wrap -- How ?

2002-09-25 Thread Lancashire, Pete
ptember 25, 2002 9:53 AM To: [EMAIL PROTECTED] Subject: Re: GD::Graph::pie -- adding text with GD::Text:Wrap -- How ? Pete Lancashire wrote: > My brain is blocking something really simple here. > > What I want to do is add a block of text to > a image created as > > my

Re: GD::Graph::pie -- adding text with GD::Text:Wrap -- How ?

2002-09-25 Thread david
Pete Lancashire wrote: > My brain is blocking something really simple here. > > What I want to do is add a block of text to > a image created as > > my $graph = new GD::Graph::pie(1200, 1200); > > Could someone show me an example of adding a > wrapbox of text

GD::Graph::pie -- adding text with GD::Text:Wrap -- How ?

2002-09-24 Thread Lancashire, Pete
My brain is blocking something really simple here. What I want to do is add a block of text to a image created as my $graph = new GD::Graph::pie(1200, 1200); Could someone show me an example of adding a wrapbox of text to this image ? Thanks, -pete -- To unsubscribe, e-mail: [EMAIL

Re: GD::Graph logo_resize question

2002-08-10 Thread zentara
On 09 Aug 2002 11:33:35 +, [EMAIL PROTECTED] (Kevin Old) wrote: > logo => >'/home/motorola/local/apache/graphic/motorola.png', > logo_resize => '1.0' > ); >Everything works fine, and the logo is it's normal size. What I'd like >to do is make it a little smaller

GD::Graph logo_resize question

2002-08-09 Thread Kevin Old
Hello everyone, I've got a quick question about using the logo_resize option in the GD::Graph package. My code is: use GD::Graph::bars; use CGI qw(:standard); @data = ( ["1st","2nd","3rd","4th","5th","6th","7th&

GD::Text, GD::Graph -> Truetype font problems.

2002-05-29 Thread vanHardenbergP
-- CODE FOLLOWS: --- #Generate a graph. use GD::Graph::lines; use GD::Text; use GD; use POSIX; $graph = GD::Graph::lines->new(800, 600); @data = ([@year], [@speed]); print @data; $graph->set( x_label => 'Time [days]', y_label => 'Direction [deg

Apache::GD::Graph font problem

2002-04-19 Thread Gary Stainburn
Hi all, I've just installed GD::Graph and Apache::GD::Graph and they look great for what I want to do. Unfortunately, I'm having a problem with fonts. I've installed the ttfonts-1.0-3.noarch.rpm rpm which has given me some truetype fonts on my syste. I've set up the

Re: GD::Graph

2002-03-31 Thread drieux
On Sunday, March 31, 2002, at 05:05 , Josue Garayua wrote: > GD::Graph::chart I assume that you were trying something on the form $graph = GD::Graph::chart->new(400, 300); when it blew up??? OYE! I think I see the problem - the documentation shows the above illustration b

GD::Graph

2002-03-31 Thread Josue Garayua
Hi: I'm trying to use GD::Graph module but I can't. When I try to display a data graphic, return the following error messages: Can't locate object method "new" via package "GD::Graph::chart" at C:\Inetpub\www\cgi-bin\grafica.pl line 15. Why this can't loc

Re: Complex question about GD::Graph

2001-11-13 Thread Peter Scott
At 03:12 PM 11/14/01 +1030, Daniel Falkenberg wrote: >Hey all, > >I have some user details that I want placed in this graph. Probem is my >Perl skills arn't all that good. Could some one give me some ideas with >the following? > >I have a hash here (%users) the Key here is their static IP addres

Complex question about GD::Graph

2001-11-13 Thread Daniel Falkenberg
se in but if someone else is added to the hash then I don't really want to have to be adding it manually each time to @data. Could some one give me some ideas on what I would do here? something like... my @data = ( [ $_[key1$_], $_[key2$_], $_[key3$_]], [ $valueofhash1$_, $valueofhash2$

perl module: GD::Graph::pie

2001-09-17 Thread Dan Lee
Hi, I try to make a pie graph, let's say based on the dataset as following: {["EST", "NP", "ET"], [30476, 2348, 439]} My pie graph is expected to have three parts labelled as EST, ET and NP. I only found some information on manual page for GD::Graph, whic

GD::Graph

2001-06-22 Thread Michael D . Risser
Does any one knw why I get a red and a green bar side-by-side for the same value when using GD::Graph::bars? Is there any way to stop thjis behavior? I've checked the perldocs on GD::Graph, but can't find anything about it. Here is the code I am using: use GD::Graph::bars;

Re: GD::Graph

2001-05-02 Thread Sean O'Leary
At 06:44 PM 5/2/2001, you wrote: >Can anyone help me understand why the following code is being ignored? > >$my_graph->set_x_label_font(GD::Font->Giant); > >Kevin Need more code! It's like saying "Why doesn't this print?" print 'Print this!'; What I didn't show you was that earlier in my progr

GD::Graph

2001-05-02 Thread kevin sezen
Can anyone help me understand why the following code is being ignored? $my_graph->set_x_label_font(GD::Font->Giant); Kevin