问题描述
我已经通过Homebrew安装了Octave和gnuplot,并下载了AquaTerm.dmg.当我尝试绘图时,收到以下消息:
I've installed Octave and gnuplot via Homebrew, and downloaded AquaTerm.dmg.When I try to plot, I get the following message:
octave:4> plot(x,y)
gnuplot> set terminal aqua enhanced title "Figure 1" font "*,6"
^
`line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list`
在bash终端set terminal
,set Terminal
,set term
中(和相同,也跟着"aqua")也没有任何作用.我已经尝试从已经打开"AquaTerm"的八度音阶进行绘图,但是没有任何反应.我已经尝试过直接从gnuplot进行绘图,但存在相同的问题.我该如何进行设置终端aqua"设置?
In a bash terminal set terminal
, set Terminal
, set term
, (and the same, followed by "aqua" too) etc gives nothing.I've tried plotting again from octave having the "AquaTerm" already open, but nothing. I've tried plotting directly from gnuplot but same problem.. How can I do this "set terminal aqua"?
Gnuplot起始消息显示为"Terminal type set to 'x11'
",但不知道如何更改它,以前的命令也不起作用.
Gnuplot starting message says "Terminal type set to 'x11'
" but no idea how to change it, the previous commands didn't work neither.
由于没有从Homebrew安装AquaTerm,所以八度/小酒杯可能找不到...但是不知道.有什么猜想吗?谢谢!
Since AquaTerm wasn't installed from Homebrew maybe octave/gnupot can't find it... but no idea.Any guess? Thanks!
推荐答案
我找到了一种使用八度生成图的方法,尽管它不是使用AquaTerm而是使用x11.问题在于Octave正在强制" gnuplot使用aquaterm进行绘图.代替将aquaterm安装和集成到gnuplot中,以八度键入:setenv GNUTERM x11
.这样,将使用gnuplot(set terminal
)终端列表中的x11生成图.我知道这是一个补丁,但是最后我不介意aquaterm或x11,我只想生成图
I found a way to generate the plots with octave, although is not using AquaTerm but x11. The problem was that Octave was "forcing" gnuplot to use aquaterm to plot. Instead of installing and integrating aquaterm into gnuplot, in octave typed: setenv GNUTERM x11
. With this, plots are generated with x11 which is already in the terminal list of gnuplot (set terminal
). I know it's a patch, but finally I don't mind aquaterm or x11, I just want plots to be generated
这篇关于Octave-Gnuplot-AquaTerm错误:设置终端aqua增强标题“图1" ...未知终端类型“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!