Here's a copy of the program:
http://www.psnw.com/~alcald/WeightInfantPlot.tcl

I commented out the code I use to get the patient's record from Tkfp and plot his or her weight.  This will just draw the curves for the 10th, 50th, and 90th percentiles from the file:

http://www.psnw.com/~alcald/wtageinf.txt  

which needs to be saved in the same directory as the program file.
You call the program from the Linux console like this:
./WeightInfantPlot.tcl Patient_Name 1          
or
./WeightInfantPlot.tcl Patient_Name 2

The first will use the boy's data and the second the girl's data.

This should run on Linux, Windows or Mac - the platforms Tcl runs on.  The Tk canvas can be used not only from Tcl, but also from PYTHON, C or C++ since it's a C library.  There is also somebody who made a wrapper for Tk for Eiffel. Of course JAVA and other GUI toolkits have similar canvas widgets
for plotting and 2D vector graphics, so you can take your choice.  John's idea of using vector
graphics built into the web browser is also a good idea.




Adrian Midgley wrote:
0201121640461J.03110@osborne">
On Saturday 12 January 2002 05:20, Alexander Caldwell wrote:

Here's a screen shot of a growth curve plotting program I made today -

http://www.psnw.com/~alcald/growth_curve.jpg

 If you'd like the code let me know and I'll post it.

I'd love to see that posted and available.
Is it something that could be genericised, either as a set of components, or
as a recipe, so that it could be re-implemented in various programming
environments but behave the same in each?







Reply via email to