|
From: Petr M. <mi...@ph...> - 2004-10-25 09:56:28
|
> > 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. The current behaviour was intentionally forced to work before 4.0 release. > > 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). I'll add it to docs. > Do these actually work? Sure, I use them often. > 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. Yes, that was the main reason. > 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? I think you want this: bind "p" 'set term post color solid; set output "a.ps"; replot; set out; set term pop' Note -- don't use "set term push" for restoring the *default* startup terminal -- that's done automatically on gnuplot startup. > I'd say first fix push/pop, including making sure they work recursively. "set term pop" plays with the command line; everything behind it gets ignored, e.g. set term pop; plot x => no plot appears --- PM |