有没有办法在gnuplot中设置默认终端呢?
我试图将默认终端设置为x11,但启动时它总是使用aqua。
谢谢。
我知道的唯一方法是在启动时加载的.gnuplot
(或gnuplotrc
或gnuplot.ini
)文件中添加一行。 (这个文件可能存在于您的主目录或其他地方,具体取决于您的gnuplot版本/配置,您可以使用show loadpath
命令查看它所在的位置。)以下是要添加的那一行:
set term x11
在运行gnuplot时,此文件中的命令会优先执行。
虽然@andyras' answer是可行的,但在启动新会话时仍会出现有关旧终端的通知 - 我想将windows
更改为wxt
:当我将我的gnuplotrc
更改为wxt
时,问候消息仍然提到了windows
:
PS C:\Users\Ev> gnuplot
...
Terminal type is now 'windows'
...
wxt
,但:gnuplot> show t
terminal type is wxt 0 enhanced
C:\Program Files\gnuplot\README-Windows.txt
:GNUTERM
,而不是那些文件。