From: Alan W. I. <ir...@be...> - 2001-11-24 02:03:47
|
You have to be careful with plssub in a series of plots (such as tcldemos.tcl or pythondemos.py) where plinit is called once before the string of examples and plend called once afterward. If the examples contain a call to plssub you would like to return the plot to default state by calling plssub(1,1) afterward (in the same example so the various examples can be combined in any order). Unfortunately, this idea is messed up because buried in the plssub code is an undocumented page advance which generates extra empty pages (and also perhaps non-standard postscript, because gv seems to get into a frozen state if I attempt to view those empty pages.) I don't really see the utility of combining the subwindowing with a page advance. For example, you might want to combine two kinds of sub-windowing on the same page. If our users really do need a page advance after the call to plssub, then shouldn't they be calling pladv themselves? I have taken out the page advance buried in c_plssub, and all the ordinary examples using plssub seem to be fine without it, and it solves the problem of the empty pages. Does anybody have an objection if I commit that change to CVS? 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 __________________________ |