47 users online (1 members and 46 guests)  


  Results 1 to 2 of 2

Related

  1. How to make a nms by Perl?    Forum: CGI Perl Forum
    Replies: 2
  2. Replies: 1
  3. Make a perl script log into a site    Forum: CGI Perl Forum
    Replies: 5
  4. Working with graphs in PHP.    Forum: PHP Forum
    Replies: 1
  1. #1
    swbluto's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2008
    Posts
    1

    Is it possible to make gnuplot-like graphs with Perl and/or CGI?

    I'm enamored by the plots that are created at an ebike-simulator site http://www.ebikes.ca/simulator/ . However, I don't know how they do it! Apparently it's referenced by an external javascript file but I have no idea past that. Anyways, I'm getting the suspicion that perl/cgi could do this and the website hosting service I'm intrigued by (http://www.polurnet.com/shared/compare.php) offers CGI/Perl scripting capabilities. So, is it possible to create graphs like gnuplot/the-link-above using CGI/Perl without having to create a whole graphing/plotting library? My "experience" is limiited to simple java applets, applications(console and GUI) along with console C/C++ programming and it seems like java applets don't have an easy way to implement graphs like that and, more importantly, it seems some users have compatibility issues with java applets for some reason so I'm thinking CGI/Perl would be more "universal" since I could output .GIFs to the end-user instead of java applets.

    I'm putting a particular java applet's development on hold due to this compatibility issue and I want to invest my time in something worth learning. (The program basically calculates how fast you'll go on an e-bike/e-vehicle given wind speed, the motor, wheel size, hill grade, voltage, current limit, etc. There are more features I want to add, like graphs, to the program, but I don't think continuing with applet development would be wise.)

  2. #2
    xmassey's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2007
    Posts
    100

    Re: Is it possible to make gnuplot-like graphs with Perl and/or CGI?

    Hi,

    http://search.cpan.org/~bwarfield/GDGraph-1.44/Graph.pm

    Is the common perl module used for plotting graphs (GD can be used for other graphical processes too)

    Chris



Tags for this Thread