Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

graphics in perl

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


Malki.Cymbalista at weizmann

Jun 22, 2008, 2:27 AM

Post #1 of 9 (912 views)
Permalink
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[at]weizmann.ac.il
08-934-3036


michael.watson at bbsrc

Jun 22, 2008, 8:36 AM

Post #2 of 9 (882 views)
Permalink
RE: graphics in perl [In reply to]

I'd recommend interfacing with R (http://www.r-project.org)

________________________________

From: Malka Cymbalista [mailto:Malki.Cymbalista[at]weizmann.ac.il]
Sent: Sun 22/06/2008 10:27 AM
To: modperl[at]perl.apache.org; beginners[at]perl.org; perl[at]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[at]weizmann.ac.il
08-934-3036


el.dodgero at gmail

Jun 22, 2008, 12:22 PM

Post #3 of 9 (882 views)
Permalink
Re: graphics in perl [In reply to]

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 <Malki.Cymbalista[at]weizmann.ac.il>:
> 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[at]weizmann.ac.il
> 08-934-3036
>
>
>
>
>



--
Dodger


rs at plusw

Jun 23, 2008, 12:04 AM

Post #4 of 9 (868 views)
Permalink
Re: graphics in perl [In reply to]

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


jim at netrition

Jun 23, 2008, 8:22 AM

Post #5 of 9 (860 views)
Permalink
Re: graphics in perl [In reply to]

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


jhfoo-ml at extracktor

Jun 24, 2008, 12:15 AM

Post #6 of 9 (846 views)
Permalink
Re: graphics in perl [In reply to]

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.


michael.watson at bbsrc

Jun 24, 2008, 12:32 AM

Post #7 of 9 (841 views)
Permalink
RE: graphics in perl [In reply to]

Did you try GD::Graph?


-----Original Message-----
From: Foo JH [mailto:jhfoo-ml[at]extracktor.com]
Sent: Tue 24/06/2008 8:15 AM
To: modperl[at]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.


mgs at customvisuals

Jun 24, 2008, 4:43 AM

Post #8 of 9 (835 views)
Permalink
Re: graphics in perl [In reply to]

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[at]extracktor.com]
> Sent: Tue 24/06/2008 8:15 AM
> To: modperl[at]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 <http://www.ve.com/kavachart/index.html/
> 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 <http://www.customvisuals.com/code.shtml>. Look
for System Load near the top of that page. You can also see something
pulling data from a URL at <http://www.customvisuals.com/> by viewing
the source of that page. Check the graph on the left side of the page.


Mike Schienle


jhfoo-ml at extracktor

Jun 25, 2008, 1:31 AM

Post #9 of 9 (819 views)
Permalink
Re: graphics in perl [In reply to]

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.

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.