我想用gnuplot绘制120个文件.
plot '18205.plot' u 1:3 w l t '18205' , '18208.plot' u 1:3 w l t '18208'
Failed to initialize wxWidgets.
warning: Warning - difficulty fitting plot titles into key
warning: Too many axis ticks requested (>1e+01)
warning: Too many axis ticks requested (>1e+01)
warning: Too many axis ticks requested (>6)
Run Code Online (Sandbox Code Playgroud)
文件看起来像
21 4 0.865671
22 4 0.894175
23 4 0.921895
24 4 0.949053
25 4 0.975792
26 4 1.00147
27 4 1.02577
28 4 1.05008
Run Code Online (Sandbox Code Playgroud)
显然,这是它未能检测到它喜欢的终端.在我的Debian稳定版"gnuplot 4.4 patchlevel 0"中,我得到一个相同的错误,直到我添加一些:
set terminal png
......此时它工作正常.Raaage!
小智 4
重要的是:
Failed to initialize wxWidgets.
Run Code Online (Sandbox Code Playgroud)
这意味着 gnuplot 无法打开窗口来使用 wxWidgets 进行绘图。确保运行 gnuplot 的终端可以在 X 中打开窗口。您可以通过echo $DISPLAY在终端(或!echo $DISPLAY在 gnuplot 中)中键入内容并检查它是否不为空以及是否有意义(通常这意味着:0.0.如果有什么不同,您应该知道,因为您已经这样设置了;))。
如果您以与运行图形环境不同的用户身份(或在不同的主机上,例如通过 ssh)运行 gnuplot,则设置正确的 X 权限也是必要的。在安全的环境中xhost +就可以,但如果您在网络上,特别是不在防火墙后面,xhost server-running-gnuplot.domain那么将是一个更明智的选择。
| 归档时间: |
|
| 查看次数: |
17341 次 |
| 最近记录: |