Coyote has asked for the wisdom of the Perl Monks concerning the following question:

Greetings monks:

I am working on a project that requires me to produce log scaled graphs from perl for display on a web site. A quick search on CPAN reveals a few modules for charting: PNGgraph, GIFgraph, Chart::Graph, and PGPLOT. PNGgraph and GIFgraph don't do logrithmic scales, Chart::Graph requires gnuplot and ppm2gif, and PGPLOT requires a FORTRAN compiler to be installed on the target system. I would like this project to run on at least *nix and Win32, so I think it would be best to avoid Chart::Graph and PGPLOT. I've been leaning toward patching or subclassing PNGgraph to add support for log scaled axes. Before I do that, is there a module that I am missing?

----
Coyote

  • Comment on Module for generating log scaled graphs

Replies are listed 'Best First'.
Re: Module for generating log scaled graphs
by kschwab (Vicar) on Feb 07, 2001 at 02:25 UTC
    There's rrdtool. It will create log scaled graphs, but it's a bit more than a graphing tool. It does come with perl bindings.

    Not knowing exactly what you are doing, I'm not sure if the datastore part of rrdtool is a help or hinderance in this case.

      Thanks for the pointer. You just saved me a couple of weeks worth of work with the link to rrdtool. I owe you many ++'s.

      ----
      Coyote

Re: Module for generating log scaled graphs
by dws (Chancellor) on Feb 07, 2001 at 01:01 UTC
    I had to do this a while back, and ended up reworking GIFgraph after finding that it wasn't structured for easy subclassing. Unfortunately, that code is owned by a former employer. But it remains a viable direction.
Re: Module for generating log scaled graphs
by CiceroLove (Monk) on Feb 07, 2001 at 01:51 UTC
    I use gdChart fro a lot of SNMP stuff. Quite flexible and gives you choices of different types of graphs. I havce forgotten the URL but you can find it at gdchart.freeservers.com. Hope that helps. CiceroLove