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

Hi I want some suggestion how to create zoomable graphs in perl. I will be making or handling the graphs for the first time. Any suggestions are welcome

Replies are listed 'Best First'.
Re: Graphs/images in perl
by lin0 (Curate) on Jul 06, 2007 at 18:08 UTC
      That or GD, which is super fun btw, but I wondered if he meant GL or something -- so I chose not to answer initially. GL can be done in perl, but it's painful to bootstrap imo.

      -Paul

Re: Graphs/images in perl
by Joost (Canon) on Jul 06, 2007 at 18:22 UTC
Re: Graphs/images in perl
by zentara (Cardinal) on Jul 07, 2007 at 16:41 UTC
    Making the graphs from data is best done with GD or one of the graph modules. Once you do that, you can load the jpg(png etc) onto a Tk::Zinc Canvas OR a Gtk2::GnomeCanvas. The canvas will allow you to zoom the image. Here are a few examples showing the basic zoom. Zooming can also be complicated by zooming around a mouse click. gtk imager viewer has a built zoom and panning with mouse movements.


    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
Re: Graphs/images in perl
by vkon (Curate) on Jul 06, 2007 at 19:49 UTC
    graph are the best in BLT package, which could be used from Perl with Tcl::Tk CPAN module