【发布时间】:2014-03-19 12:58:54
【问题描述】:
我在 Ubuntu 13.10 上使用 Octave 3.8,而用于图形的“fltk”无法正常工作。所以我总是通过命令切换到“gnuplot”:
graphics_toolkit("gnuplot")
如何将 Octave 配置为默认使用“gnuplot”?
【问题讨论】:
标签: octave
我在 Ubuntu 13.10 上使用 Octave 3.8,而用于图形的“fltk”无法正常工作。所以我总是通过命令切换到“gnuplot”:
graphics_toolkit("gnuplot")
如何将 Octave 配置为默认使用“gnuplot”?
【问题讨论】:
标签: octave
您将命令添加到您的.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)]
);
【讨论】: