From: Michael H. <mh...@al...> - 2010-05-03 08:37:36
|
Benny Malengier wrote: > Alternative is not to set terminal in _Gnuplot.py, as then gnuplot > chooses it's default, so to change the default to do nothing, and only > when gp_unix.py contains an entry different from '' use that. I think I > like this alternative actually best. I believe that Gnuplot.py has to know a terminal name in order to reset it after creating a hardcopy (because to create a hardcopy it temporarily sets the terminal to postscript or something similar). It would be possible to leave the default terminal type until the first hardcopy, but I think it would be confusing for the terminal type to change in the middle of a session. It would be possible to read the terminal type from gnuplot it self if somebody wants to make that effort. This could be done, for example, by executing "show term" or by executing "output 'filename'" then looking in the resulting file. Or perhaps there is a more modern way of doing it. Michael |