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
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
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,
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
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
. 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
: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
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
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$
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
-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
"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
>
> 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
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
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
> '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'
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
::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
-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
Do you know how to define that all the numbers on the Y axis should be
integers?
Do you know how to define that all the numbers on the Y axis should be
integers?
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::
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
--
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
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
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
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
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
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
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
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
>
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
--
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 =
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
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
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
> -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
&
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
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
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 (
[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
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
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
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:
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
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>
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
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. 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>
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,
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);
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 &
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
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
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
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
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
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
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
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&
--
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
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
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
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
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
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$
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
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;
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
Can anyone help me understand why the following code is being ignored?
$my_graph->set_x_label_font(GD::Font->Giant);
Kevin
83 matches
Mail list logo