From: Alan W. Irwin <irwin@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?
phone: 250-727-2902 FAX: 250-721-7715
Dr. Alan W. Irwin
Department of Physics and Astronomy,
University of Victoria, P.O. Box 3055,
Victoria, British Columbia, Canada, V8W 3P6
From: Maurice LeBrun <mjl@ga...> - 2001-11-24 21:02:01
Alan W. Irwin writes:
> 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?
I personally have no objection. It may break a small amount existing code,
none of mine tho. :) And it seems more logical your way -- I think I've
noticed this misfeature before but didn't feel like changing it as it doesn't
really affect me..
Maurice LeBrun mjl@...