On Thu, May 27, 2010 at 09:06:35AM -0700, Alan Irwin wrote: > 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, I've only inserted calls to plfontld, plfont and pllsty which don't create any output in the postscript file. I've run test_diff_psc after the changes and all is still well. The problem is for things like plcol0 which do insert a colour change. There are still some remaining problems (e.g. between example 2 and 3 to do with pleop not advancing the page) which I think fall into the category you discuss. Andrew ------------------------------------------------------------------------------ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel