首先在windows系统中安装Xming,然后打开Xming,启动Linux bash, 用以下方式启动gnuplot:
DISPLAY=:0 gnuplot
这样就可以正常画图了,如果使用交频繁,可以设置命令别名,编辑“.bashrc”文件,增加:
alias gnuplot='DISPLAY=:0 gnuplot'
保存并刷新.bashrc。
首先在windows系统中安装Xming,然后打开Xming,启动Linux bash, 用以下方式启动gnuplot:
DISPLAY=:0 gnuplot
这样就可以正常画图了,如果使用交频繁,可以设置命令别名,编辑“.bashrc”文件,增加:
alias gnuplot='DISPLAY=:0 gnuplot'
保存并刷新.bashrc。