On 2010-05-27 09:56-0000 andrewr...@users.sourceforge.net wrote:

> Revision: 11026
>          http://plplot.svn.sourceforge.net/plplot/?rev=11026&view=rev
> Author:   andrewross
> Date:     2010-05-27 09:56:37 +0000 (Thu, 27 May 2010)
>
> Log Message:
> -----------
> A load of little changes to tcl scripts to restore defaults at the end of the 
> example. This ensures the correct results when multiple examples are run 
> within the same plserver session (e.g. by make test_interactive).
>
> Modified Paths:
> --------------
>    trunk/examples/tcl/x07.tcl
>    trunk/examples/tcl/x09.tcl
>    trunk/examples/tcl/x13.tcl
>    trunk/examples/tcl/x17.tcl
>    trunk/examples/tcl/x19.tcl
>    trunk/examples/tcl/x21.tcl
>    trunk/examples/tcl/x26.tcl

Hi Andrew:

I do like this restoration of defaults, because the bad-looking results for
test_interactive (implemented in examples/tk/standard_examples(.in) were
annoying.  But these changes will mess up the good agreement with the C
examples for test_noninteractive (which runs these tcl examples separately)
so I think they should be reverted.

I believe the proper way to deal with this issue is to have some general
"restore_defaults" functionality implemented in tkdemos.tcl and then instead
of

source tkdemos.tcl
1
2
3
4
...

in examples/tk/standard_examples(.in) use instead

source tkdemos.tcl
1
restore_defaults
2
restore_defaults
3
restore_defaults
4
restore_defaults
...

Can somebody here with Tcl expertise implement a solution similar to this
idea?

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------

_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to