我在Ubuntu 13.10上使用Octave 3.8,而"fltk"用于图形效果不佳.所以我总是通过命令切换到"gnuplot":
graphics_toolkit("gnuplot")
Run Code Online (Sandbox Code Playgroud)
如何配置Octave默认使用"gnuplot"?
jul*_*ohm 18
您将命令添加到您的.octaverc文件中.
欲了解更多信息:http://www.gnu.org/software/octave/doc/interpreter/Startup-Files.html
您可以将该行添加到该.octaverc文件中.如果文件不存在,只需在主目录中创建它.除非您通过-f或--norc选项,否则每次启动Octave时都会执行此文件.
您可以向.octaverc文件中添加许多其他内容.举个例子,这是我的一部分:
## use man instead of help
function man (name = "help");
mlock (); # lock in memory so it's not removed by clear all
help (char (name));
endfunction
## no octave-core
crash_dumps_octave_core (0);
EDITOR ("nano");
edit ("mode", "sync");
## pretty prompt
PS1 ("\\[\\033[01;31m\\]\\s:\\#> \\[\\033[0m\\]");
## no > for multi-line input
PS2 ("");
## default image size to take the right half of the monitor
set (0,
"DefaultFigurePosition",
[get(0, "screensize")(3)/2 1 ...
get(0, "screensize")(3)/2 get(0, "screensize")(4)]
);
Run Code Online (Sandbox Code Playgroud)