On 2010-05-27 20:29+0100 Andrew Ross wrote: >> 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.
Hi Andrew: Sorry for incorrectly assuming you were restoring colours. Also, I am very glad to hear that test_diff_psc is still all right because you ignored colour restoration. Of course, in general we do want to restore colours so some general solution like above is required to avoid screwing up test_diff_psc for that case. Any Tcl expert here want to have a go at implementing that general solution? 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