在mac10.10上使用octave的时候,键入 plot(x, y)的时候会出现如下错误:

set terminal aqua enhanced title "Figure 1" font "*,6" dashlength 1 ^

   line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list

这个时候可以在每次运行plot前加入这句命令:

setenv("GNUTERM","qt")

如果不想这么麻烦,那么就进行如下命令:

vim ~/.octaverc

然后在文件里面加入如下命令:

setenv("GNUTERM","qt")

如果上面的操作还是不行,那么就是 octave 自带的 gunplot 不行,那么运行如下操作:

brew uninstall gnuplot
brew install gnuplot --with-x

然后在进行前面的操作即可。

 

相关文章:

  • 2021-10-01
  • 2022-01-18
  • 2021-06-28
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-08-18
猜你喜欢
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2021-10-31
  • 2021-11-22
  • 2021-04-03
  • 2022-02-23
相关资源
相似解决方案