|
From: Dmitri A. S. <das...@gm...> - 2005-09-22 14:54:31
|
Hans-Bernhard Broeker wrote: > From: John W. Eaton <jw...@be...> > >> OK, I think this might be a bug in gnuplot. You can reproduce it with >> the following commands (these are essentially the commands that Octave >> is sending to gnuplot, but plotting a function instead of a data file >> to simplify things a bit)): > > > [...] > > > I have not looked at the code, so I am only guessing here, but it > > seems that the problem might be that gnuplot is hanging on to some > > postscript terminal options even after the set terminal pop statement > > is executed. If you insert something like > > This is not really a bug, but intended behaviour. gnuplot terminal > drivers save settings internally, so going to some other driver and then > back will give you the previously used driver in the same state is was > in before. Users can't seem to make up their mind whether they like > this or not... > Ok, in that case how do I undo "eps" setting for the file foo.ps in the following script? plot sin(x) title "line 1" set terminal push set term postscript eps enhanced color solid set output "foo.eps" replot set terminal pop set output replot set term postscript set output "foo.ps" replot quit There are enhanced|noenhanced, color|monochrome, but there is no eps|noeps switch, which in my mind imply that "eps" should not be a sticky option. Sincerely, Dmitri. |