Name for a new Tk Graph module
am 04.04.2007 12:17:42 von TimMy colleague and I have written a Tk graph module and wish to commit
it to CPAN. It is based on the existing CPAN module Tk::LineGraph, but
I believe we have changed it enough for it to become a different
module in its own right. The original Tk::LineGraph module can draw
multiple 2D line graphs with an optional second y-axis. The graphs are
zoomable and contain a legend. The main difference between our new
module and the original is that our's creates the graph as a widget
and not in a separate window. It therefore does not have the drop down
menus used to configure the graph in the original. Other additions/
alterations we have made are:
* Used Tk::Balloon to add coordinate pop-ups to data points.
* Running the cursor over a line name in the legend will highlight the
curve on the graph.
* Added a clearDatasets method for removing all datasets from a plot.
* Added support for a -noLine boolean attribute of datasets.
* Added support for a -noLegend option for datasets, allowing them to
be excluded from the legend.
* Added -redraw option to allow a callback to be added to draw
additional items onto the canvas when it is redrawn.
* Option for a logarithmic scale on the x-axis (previously this was
only available on the y-axis).
We have also found and fixed a number of bugs in the original code.
I was wondering what name we should give this new module. To my
knowledge there are only the following Tk graphing modules currently
on CPAN:
* Tk::LineGraph (obviously)
* Tk::Graph - Based on a Canvas widget like our module. It can draw
bar and pie charts, as well as line charts. However it lacks the
zooming capabilities of the Tk::LineGraph module.
I would like to check that there no existing modules on CPAN or
elsewhere that are similar to our module. Assuming that there are not,
I would like to suggest Tk::Plot as an appropriate name. This name has
already been used by Slaven Rezic, but his module is not on CPAN and
does not appear to be active (last modified Oct 2000 -
http://user.cs.tu-berlin.de/~eserte/src/perl/Tk-Plot/). Please can
anyone tell me if this name would be suitable? Or maybe even suggest a
better name we could use.
Thanks,
Tim Culmer
I.T. Dev Limited - Hardware & Software Development Services
www.itdev.co.uk