|
From: Ethan M. <merritt@u.washington.edu> - 2004-10-21 22:29:04
|
On Thursday 21 October 2004 02:58 pm, Harald Harders wrote: > > It produces two identical, coloured, eps figures. I would prefer that a > terminal starts with its default settings when it is chosen after another > terminal type. I would prefer that the current settings are kept. > If I want to restore the old settings I can use > 'set term push' and 'set term pop' (BTW: gnuplot does not find these > command in the help). Do these actually work? When I have tried to use them I get errors or misdirected output or some random collection of terminal settings. I thought they were unmaintained remnants of some earlier system. > Another case is this: > > set terminal postscript eps > set terminal postscript color > > This adds the setting 'color' to the already chosen terminal type. If this > should be the case has been discussed here some years ago. > > But, if a different terminal has been used in the meanwhile I think the > old settings should not be preserved. Isn't that rather confusing? You don't necessarily *know* if another terminal has been used in between, particularly if you are stringing together scripts. But even if you *do* know, I think it is better to preserve the settings as much as possible Example: bind "P" 'set term post color solid; set output "| lpr"; replot; set term x11' Now I have a print key in X11. But it's really annoying if using that print key changes what is next shown on the x11 plot window. For completeness I point out that bind "p" 'set term push; set term post color solid; set output "| lpr"; replot; set term pop' does not work. It produces a corrupt output stream. Adding in another 'set output' does not help. Did this ever work? > What do you think about it? I offer to do the work if you also think this > is useful. I'd say first fix push/pop, including making sure they work recursively. If those actually worked then I'd have a more favorable reaction to losing the current settings from a normal 'set term foo'. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |