From: Alan W. I. <ir...@be...> - 2002-08-31 15:00:07
|
While writing e-mail to Geoffrey on the current status of PLplot, I had a blinding flash of insight....;-) A side benefit of the current library changes is we can now run tkdemos.tcl from wish and tcldemos.tcl from tclsh! (This was the major motivation for working on the tea branch for me.) Here is the wish/tkdemos.tcl prescription from plplot/tmp: wish load drivers/tkd_drv.so Pltk package require Pltk source tkdemos.tcl 1 2 3 ..... Please try this for yourself as well. Note, that the version string that the package require comes back with is 4.99 so something has to be changed to address that (minor?) issue. Here is the tclsh/tcldemos.tcl prescription from plplot/tmp: tclsh load ./libplplottcltkd.so.5.1.0 Pltcl package require Pltcl plinit source tcldemos.tcl 1 2 3 ..... Please try this for yourself as well. Here the version string returned by the package require command is correct. Also some changes will have to be done to the files which set up tcl/tk so that the package require commands will work without the prior load commands both for the plplot/tmp and installed versions. However, I will leave that internal tcl/tk configuration issue to the tcl/tk experts here. The important thing to recognize here is that we are now in a position to run our tk examples directly from a tk environment (wish) and our tcl examples directly from a tcl environment (tclsh) much in the same way that we run our python examples directly from python. Personally, I think this is an idea our users will understand better than demanding they use special executables (plserver instead of wish and pltcl instead of tclsh) to gain access to plplot from tcl/tk. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ |