When drawing plot by octave on Mac, I had an error like:
1
2
3
|
octave3.8.0 gnuplot> 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
|
Install to Mac with M1 Chip
Environment
1
2
3
4
5
|
$ sw_vers
ProductName: macOS
ProductVersion: 12.0
BuildVersion: 21A344
tmbp:~ tato$
|
Install
1
2
3
4
|
brew update
brew upgrade
brew doctor
brew install octave
|
Install to Mac with Intel Chip
Environment
MacOS 10.15.7 Catalina
Install
Configuration
Configuration at ~/.octaverc
1
2
|
setenv('GNUTERM', 'qt')
graphics_toolkit("gnuplot")
|
Run octave
1
2
3
4
|
$ octave
octave:1> x=-2*pi:0.1:2*pi;
octave:2> y=sin(x);
octave:3> plot(x, y);
|
References