graphics in perl
am 22.06.2008 11:27:26 von Malka Cymbalista
We are running perl 5.8.5 on a Linux machine that is running apache 2.2.6 =
with mod_perl 2.0.3. Our data is in a MySQL database (MySQL 5.0.45)
We have been asked to write a web application that requires plotting =
capabilities. We do most of our web programming in perl so I am looking =
for a perl module that has the following features:
1. ability to create histograms=20
2. ability to create x,y plots
3. ability to zoom in on a portion of the graph
4. ability to calculate the distance between 2 points on the graph
5. ability to hover on a point and bring up some text=20
Does anyone have any suggestions for which perl modules we should look =
into?
Thanks for any information.
--=20
Malka Cymbalista
Webmaster, Weizmann Institute of Science
malki.cymbalista@weizmann.ac.il
08-934-3036
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: graphics in perl
am 22.06.2008 11:49:46 von Rob Dixon
Malka Cymbalista wrote:
>
> We are running perl 5.8.5 on a Linux machine that is running apache 2.2.6
> with mod_perl 2.0.3. Our data is in a MySQL database (MySQL 5.0.45)
>
> We have been asked to write a web application that requires plotting
> capabilities. We do most of our web programming in perl so I am looking for
> a perl module that has the following features:
>
> 1. ability to create histograms
> 2. ability to create x,y plots
> 3. ability to zoom in on a portion of the graph
> 4. ability to calculate the distance between 2 points on the graph
> 5. ability to hover on a point and bring up some text
>
> Does anyone have any suggestions for which perl modules we should look into?
Creating graphics is very different from writing a GUI or CGI application that
lets you manipulate those graphics.
For the graphics, take a look at GD here
http://search.cpan.org/~lds/GD-2.39/GD.pm
For Web applications, look at CGI, which is a standard library and doesn't need
to be installed separately. But remember that if you have never done Web
programming before you have a huge amount of learning to do (you will need to
know HMTL and, ideally, CSS and JavaScript), and in addition your application is
non-trivial. Allow several months.
If you would like to try it as a stand alone GUI application then you will find
Gtk, Gtk2 and Wx (my preference) of use.
Now having written that I see you have also posted to two other groups and I
have wasted my time. Please don't do this again.
Rob
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: graphics in perl
am 22.06.2008 11:49:46 von Rob Dixon
Malka Cymbalista wrote:
>
> We are running perl 5.8.5 on a Linux machine that is running apache 2.2.6
> with mod_perl 2.0.3. Our data is in a MySQL database (MySQL 5.0.45)
>
> We have been asked to write a web application that requires plotting
> capabilities. We do most of our web programming in perl so I am looking for
> a perl module that has the following features:
>
> 1. ability to create histograms
> 2. ability to create x,y plots
> 3. ability to zoom in on a portion of the graph
> 4. ability to calculate the distance between 2 points on the graph
> 5. ability to hover on a point and bring up some text
>
> Does anyone have any suggestions for which perl modules we should look into?
Creating graphics is very different from writing a GUI or CGI application that
lets you manipulate those graphics.
For the graphics, take a look at GD here
http://search.cpan.org/~lds/GD-2.39/GD.pm
For Web applications, look at CGI, which is a standard library and doesn't need
to be installed separately. But remember that if you have never done Web
programming before you have a huge amount of learning to do (you will need to
know HMTL and, ideally, CSS and JavaScript), and in addition your application is
non-trivial. Allow several months.
If you would like to try it as a stand alone GUI application then you will find
Gtk, Gtk2 and Wx (my preference) of use.
Now having written that I see you have also posted to two other groups and I
have wasted my time. Please don't do this again.
Rob
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
RE: graphics in perl
am 22.06.2008 17:36:06 von michael.watson
I'd recommend interfacing with R (http://www.r-project.org)
________________________________
From: Malka Cymbalista [mailto:Malki.Cymbalista@weizmann.ac.il]
Sent: Sun 22/06/2008 10:27 AM
To: modperl@perl.apache.org; beginners@perl.org; perl@perl.org.il
Subject: graphics in perl
We are running perl 5.8.5 on a Linux machine that is running apache =
2.2.6 with mod_perl 2.0.3. Our data is in a MySQL database (MySQL =
5.0.45)
We have been asked to write a web application that requires plotting =
capabilities. We do most of our web programming in perl so I am looking =
for a perl module that has the following features:
1. ability to create histograms
2. ability to create x,y plots
3. ability to zoom in on a portion of the graph
4. ability to calculate the distance between 2 points on the graph
5. ability to hover on a point and bring up some text
Does anyone have any suggestions for which perl modules we should look =
into?
Thanks for any information.
--
Malka Cymbalista
Webmaster, Weizmann Institute of Science
malki.cymbalista@weizmann.ac.il
08-934-3036
RE: graphics in perl
am 22.06.2008 17:36:06 von michael.watson
I'd recommend interfacing with R (http://www.r-project.org)
________________________________
From: Malka Cymbalista [mailto:Malki.Cymbalista@weizmann.ac.il]
Sent: Sun 22/06/2008 10:27 AM
To: modperl@perl.apache.org; beginners@perl.org; perl@perl.org.il
Subject: graphics in perl
We are running perl 5.8.5 on a Linux machine that is running apache =
2.2.6 with mod_perl 2.0.3. Our data is in a MySQL database (MySQL =
5.0.45)
We have been asked to write a web application that requires plotting =
capabilities. We do most of our web programming in perl so I am looking =
for a perl module that has the following features:
1. ability to create histograms
2. ability to create x,y plots
3. ability to zoom in on a portion of the graph
4. ability to calculate the distance between 2 points on the graph
5. ability to hover on a point and bring up some text
Does anyone have any suggestions for which perl modules we should look =
into?
Thanks for any information.
--
Malka Cymbalista
Webmaster, Weizmann Institute of Science
malki.cymbalista@weizmann.ac.il
08-934-3036
Re: graphics in perl
am 22.06.2008 21:22:20 von el.dodgero
Uhm, dude... a Perl module won't do that because Perl is a language,
not a display technology.
You're looking for something like Shockwave Flash. Though you can
certainly have Perl generate everything.
2008/6/22 Malka Cymbalista :
> We are running perl 5.8.5 on a Linux machine that is running apache 2.2.6 with mod_perl 2.0.3. Our data is in a MySQL database (MySQL 5.0.45)
>
> We have been asked to write a web application that requires plotting capabilities. We do most of our web programming in perl so I am looking for a perl module that has the following features:
> 1. ability to create histograms
> 2. ability to create x,y plots
> 3. ability to zoom in on a portion of the graph
> 4. ability to calculate the distance between 2 points on the graph
> 5. ability to hover on a point and bring up some text
>
> Does anyone have any suggestions for which perl modules we should look into?
>
> Thanks for any information.
>
>
> --
>
> Malka Cymbalista
> Webmaster, Weizmann Institute of Science
> malki.cymbalista@weizmann.ac.il
> 08-934-3036
>
>
>
>
>
--
Dodger
Re: graphics in perl
am 22.06.2008 21:22:20 von el.dodgero
Uhm, dude... a Perl module won't do that because Perl is a language,
not a display technology.
You're looking for something like Shockwave Flash. Though you can
certainly have Perl generate everything.
2008/6/22 Malka Cymbalista :
> We are running perl 5.8.5 on a Linux machine that is running apache 2.2.6 with mod_perl 2.0.3. Our data is in a MySQL database (MySQL 5.0.45)
>
> We have been asked to write a web application that requires plotting capabilities. We do most of our web programming in perl so I am looking for a perl module that has the following features:
> 1. ability to create histograms
> 2. ability to create x,y plots
> 3. ability to zoom in on a portion of the graph
> 4. ability to calculate the distance between 2 points on the graph
> 5. ability to hover on a point and bring up some text
>
> Does anyone have any suggestions for which perl modules we should look into?
>
> Thanks for any information.
>
>
> --
>
> Malka Cymbalista
> Webmaster, Weizmann Institute of Science
> malki.cymbalista@weizmann.ac.il
> 08-934-3036
>
>
>
>
>
--
Dodger
Re: graphics in perl
am 22.06.2008 22:23:57 von ficovh
On Sun, Jun 22, 2008 at 4:49 AM, Rob Dixon wrote:
> Malka Cymbalista wrote:
>>
>> We are running perl 5.8.5 on a Linux machine that is running apache 2.2.6
>> with mod_perl 2.0.3. Our data is in a MySQL database (MySQL 5.0.45)
>>
>> We have been asked to write a web application that requires plotting
>> capabilities. We do most of our web programming in perl so I am looking for
>> a perl module that has the following features:
>>
>> 1. ability to create histograms
>> 2. ability to create x,y plots
>> 3. ability to zoom in on a portion of the graph
>> 4. ability to calculate the distance between 2 points on the graph
>> 5. ability to hover on a point and bring up some text
Take a look into:
http://search.cpan.org/modlist/Graphics
Regards
>>
>> Does anyone have any suggestions for which perl modules we should look into?
>
> Creating graphics is very different from writing a GUI or CGI application that
> lets you manipulate those graphics.
>
> For the graphics, take a look at GD here
>
> http://search.cpan.org/~lds/GD-2.39/GD.pm
>
> For Web applications, look at CGI, which is a standard library and doesn't need
> to be installed separately. But remember that if you have never done Web
> programming before you have a huge amount of learning to do (you will need to
> know HMTL and, ideally, CSS and JavaScript), and in addition your application is
> non-trivial. Allow several months.
>
> If you would like to try it as a stand alone GUI application then you will find
> Gtk, Gtk2 and Wx (my preference) of use.
>
> Now having written that I see you have also posted to two other groups and I
> have wasted my time. Please don't do this again.
>
> Rob
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>
--
Francisco Valladolid H.
-- http://bsdguy.net - Jesus Christ follower.
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: graphics in perl
am 23.06.2008 09:04:55 von Rolf Schaufelberger
Am Sonntag, 22. Juni 2008 11:27:26 schrieb Malka Cymbalista:
> We are running perl 5.8.5 on a Linux machine that is running apache 2.2.6
> with mod_perl 2.0.3. Our data is in a MySQL database (MySQL 5.0.45)
>
> We have been asked to write a web application that requires plotting
> capabilities. We do most of our web programming in perl so I am looking
> for a perl module that has the following features: 1. ability to create
> histograms
> 2. ability to create x,y plots
> 3. ability to zoom in on a portion of the graph
> 4. ability to calculate the distance between 2 points on the graph
> 5. ability to hover on a point and bring up some text
>
> Does anyone have any suggestions for which perl modules we should look
> into?
>
> Thanks for any information.
For drawing graphs you can have a look at google graph api
(http://code.google.com/apis/chart/)
I've once used another cart libray offering API in different languages
see : http://www.advsofteng.com/product.html
And then there is GD::Graph, but I have no experience with this.
For basic graphic functions look at Imager (imager.perl.org)
--
Regards
Rolf Schaufelberger
Re: graphics in perl
am 23.06.2008 17:22:25 von Jim Albert
Malka Cymbalista wrote:
> We are running perl 5.8.5 on a Linux machine that is running apache 2.2.6 with mod_perl 2.0.3. Our data is in a MySQL database (MySQL 5.0.45)
>
> We have been asked to write a web application that requires plotting capabilities. We do most of our web programming in perl so I am looking for a perl module that has the following features:
> 1. ability to create histograms
> 2. ability to create x,y plots
> 3. ability to zoom in on a portion of the graph
> 4. ability to calculate the distance between 2 points on the graph
> 5. ability to hover on a point and bring up some text
>
> Does anyone have any suggestions for which perl modules we should look into?
>
> Thanks for any information.
There are a lot of perl APIs built over various graphics packages.
You can start with this list:
http://search.cpan.org/modlist/Graphics
You might also try searching cpan for some specific keywords, because I
don't believe all the graphics modules are in that list. For example,
I've used Image::Magick for doing some basic image resizing and
conversion, but I don't see Image::Magick in that list.
--
Jim Albert
Re: graphics in perl
am 23.06.2008 17:22:25 von Jim Albert
Malka Cymbalista wrote:
> We are running perl 5.8.5 on a Linux machine that is running apache 2.2.6 with mod_perl 2.0.3. Our data is in a MySQL database (MySQL 5.0.45)
>
> We have been asked to write a web application that requires plotting capabilities. We do most of our web programming in perl so I am looking for a perl module that has the following features:
> 1. ability to create histograms
> 2. ability to create x,y plots
> 3. ability to zoom in on a portion of the graph
> 4. ability to calculate the distance between 2 points on the graph
> 5. ability to hover on a point and bring up some text
>
> Does anyone have any suggestions for which perl modules we should look into?
>
> Thanks for any information.
There are a lot of perl APIs built over various graphics packages.
You can start with this list:
http://search.cpan.org/modlist/Graphics
You might also try searching cpan for some specific keywords, because I
don't believe all the graphics modules are in that list. For example,
I've used Image::Magick for doing some basic image resizing and
conversion, but I don't see Image::Magick in that list.
--
Jim Albert
Re: graphics in perl
am 24.06.2008 09:15:03 von Foo JH
Rolf Schaufelberger wrote:
> Am Sonntag, 22. Juni 2008 11:27:26 schrieb Malka Cymbalista:
>
>> We are running perl 5.8.5 on a Linux machine that is running apache 2.2.6
>> with mod_perl 2.0.3. Our data is in a MySQL database (MySQL 5.0.45)
>>
>> We have been asked to write a web application that requires plotting
>> capabilities. We do most of our web programming in perl so I am looking
>> for a perl module that has the following features: 1. ability to create
>> histograms
>> 2. ability to create x,y plots
>> 3. ability to zoom in on a portion of the graph
>> 4. ability to calculate the distance between 2 points on the graph
>> 5. ability to hover on a point and bring up some text
>>
>> Does anyone have any suggestions for which perl modules we should look
>> into?
>>
To make your life easier, use a third-party Flash charting tool. It's
pretty and it's more interactive than a static jpg (for example).
The role of Perl in this case is simply to generate the data for the
flash application to load. Most of the time it's an XML document, so
that's something Perl does very well.
RE: graphics in perl
am 24.06.2008 09:32:12 von michael.watson
Did you try GD::Graph?
-----Original Message-----
From: Foo JH [mailto:jhfoo-ml@extracktor.com]
Sent: Tue 24/06/2008 8:15 AM
To: modperl@perl.apache.org
Subject: Re: graphics in perl
=20
Rolf Schaufelberger wrote:
> Am Sonntag, 22. Juni 2008 11:27:26 schrieb Malka Cymbalista:
> =20
>> We are running perl 5.8.5 on a Linux machine that is running apache =
2.2.6
>> with mod_perl 2.0.3. Our data is in a MySQL database (MySQL 5.0.45)
>>
>> We have been asked to write a web application that requires plotting
>> capabilities. We do most of our web programming in perl so I am =
looking
>> for a perl module that has the following features: 1. ability to =
create
>> histograms
>> 2. ability to create x,y plots
>> 3. ability to zoom in on a portion of the graph
>> 4. ability to calculate the distance between 2 points on the graph
>> 5. ability to hover on a point and bring up some text
>>
>> Does anyone have any suggestions for which perl modules we should =
look
>> into?
>> =20
To make your life easier, use a third-party Flash charting tool. It's=20
pretty and it's more interactive than a static jpg (for example).
The role of Perl in this case is simply to generate the data for the=20
flash application to load. Most of the time it's an XML document, so=20
that's something Perl does very well.
Re: graphics in perl
am 24.06.2008 13:43:43 von Mike Schienle
On Jun 24, 2008, at 2:32 AM, michael watson (IAH-C) wrote:
> Did you try GD::Graph?
>
>
> -----Original Message-----
> From: Foo JH [mailto:jhfoo-ml@extracktor.com]
> Sent: Tue 24/06/2008 8:15 AM
> To: modperl@perl.apache.org
> Subject: Re: graphics in perl
>
>
> Rolf Schaufelberger wrote:
>> Am Sonntag, 22. Juni 2008 11:27:26 schrieb Malka Cymbalista:
>>
>>> We are running perl 5.8.5 on a Linux machine that is running
>>> apache 2.2.6
>>> with mod_perl 2.0.3. Our data is in a MySQL database (MySQL 5.0.45)
>>>
>>> We have been asked to write a web application that requires plotting
>>> capabilities. We do most of our web programming in perl so I am
>>> looking
>>> for a perl module that has the following features: 1. ability to
>>> create
>>> histograms
>>> 2. ability to create x,y plots
>>> 3. ability to zoom in on a portion of the graph
>>> 4. ability to calculate the distance between 2 points on the graph
>>> 5. ability to hover on a point and bring up some text
>>>
>>> Does anyone have any suggestions for which perl modules we should
>>> look
>>> into?
>>>
> To make your life easier, use a third-party Flash charting tool. It's
> pretty and it's more interactive than a static jpg (for example).
>
> The role of Perl in this case is simply to generate the data for the
> flash application to load. Most of the time it's an XML document, so
> that's something Perl does very well.
I'e used Visual Engineering's KavaChart
> to do 1, 2, 3, and 5 above. It may do 4, but I haven't tried
anything like that with it. I have code for a simple System Load
application listed at . Look
for System Load near the top of that page. You can also see something
pulling data from a URL at by viewing
the source of that page. Check the graph on the left side of the page.
Mike Schienle
Re: graphics in perl
am 24.06.2008 14:57:09 von unknown
Post removed (X-No-Archive: yes)
Re: graphics in perl
am 25.06.2008 10:31:40 von Foo JH
michael watson (IAH-C) wrote:
> Did you try GD::Graph?
>
GD::Graph is a good graphing tool. It can get quite low-level as well,
so you have to decide which visualiser works for you.
The advantage of GD::Graph is that it'd likely be rendered as a JPEG/
GIF, and that's something you can download and reuse in an executive
chart. But if you want something interactive (think click-through), then
Flash has that advantage.