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

标签 macos gnuplot

我正在学习斯坦福大学 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/

相关文章:

objective-c - Core MIDI 回调中未注册线程上的 GC

swift - 如何将另一个 Cocoa 应用程序窗口置于最前面

sql-server - 适用于 Mac OS X 的 SQL 客户端,可与 MS SQL Server 配合使用

objective-c - 用于大图像的 CIFilter inputIntensity slider

gnuplot - 如何加粗和调整图表上的标签大小?

gnuplot - 如何制作这个 gnuplot 图

windows - 如何在 Windows 上安装 GnuPlot?

xcode - 更改 CLLocationManager 的文本允许 OS X 上的权限警报

gnuplot - 从两个数据集绘图以两种不同的方式划分

gnuplot - 使用 gnuplot 获得平滑曲线