【问题标题】:How to make Octave use "gnuplot" instead of "fltk" by default?如何让 Octave 默认使用“gnuplot”而不是“fltk”?
【发布时间】:2014-03-19 12:58:54
【问题描述】:

我在 Ubuntu 13.10 上使用 Octave 3.8,而用于图形的“fltk”无法正常工作。所以我总是通过命令切换到“gnuplot”:

graphics_toolkit("gnuplot")

如何将 Octave 配置为默认使用“gnuplot”?

【问题讨论】:

    标签: octave


    【解决方案1】:

    您将命令添加到您的.octaverc 文件中。

    欲了解更多信息:http://www.gnu.org/software/octave/doc/interpreter/Startup-Files.html

    【讨论】:

      【解决方案2】:

      您可以将该行添加到.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)]
      );
      

      【讨论】:

      • 在显示器右半边显示图像的技巧很好。
      猜你喜欢
      • 2021-05-31
      • 2015-06-07
      • 1970-01-01
      • 2014-12-03
      • 2018-02-17
      • 2022-11-06
      • 2020-12-12
      • 2015-01-31
      • 2021-10-31
      相关资源
      最近更新 更多