gpt4 book ai didi

macos - 警告 : Plotting with an 'unknown' terminal. 将不会生成任何输出。请选择带有 'set terminal' 的终端

转载 作者:行者123 更新时间:2023-12-01 21:54:32 27 4
gpt4 key购买 nike

我正在学习斯坦福大学 Andrew Wu 教授的精彩机器学习类(class)。当我在 ex5 文件中执行绘图函数时,octave cli 命令行报告以下警告:

set terminal aqua enhanced title "Figure 1" size 560 420  font "*,6" dashlength 1
^
line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list

WARNING: Plotting with an 'unknown' terminal.
No output will be generated. Please select a terminal with 'set terminal'.

计算有效,但所有图表都不是通过绘图绘制的。我尝试设置终端qt或其他像x11,但它们都不起作用。这篇文章的解决方案Can't find x11 terminal in gnuplot Octave on Mac OS也不起作用。

我的 Mac 是 Yosemite 10.10.3我的 gnuplot 是

G N U P L O T
Version 5.0 patchlevel 1 last modified 2015-06-07
...
Terminal type set to 'unknown'

我的 XQuartz 2.7.7(xorg-server 1.15.2)

有谁知道怎么解决吗?谢谢!

最佳答案

尝试重新安装 gnuplot --with-qt,例如

brew reinstall gnuplot --with-qt

关于macos - 警告 : Plotting with an 'unknown' terminal. 将不会生成任何输出。请选择带有 'set terminal' 的终端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32086405/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com