gpt4 book ai didi

plot - 在 .octaverc 中设置默认绘图线宽

转载 作者:行者123 更新时间:2023-12-05 01:45:34 31 4
gpt4 key购买 nike

我开始使用 Octave。我在 Debian 上使用 Octave 4.2.0(从源代码编译)。

我发现使用 qt 或 fltk graphics_toolkit,默认线宽为 0.5。我想更改 .octaverc 文件中的默认线宽。

我尝试将以下内容添加到我的 .octaverc(单独),但它们都会导致错误

linewidth:def.1.5000
set(gca (), "defaultlinewidth", "1.5")

如何通过 octaverc 文件更改绘图的默认线宽?

最佳答案

听起来您想将它设置在根上,以便所有地 block 都将使用它:

set(0, "defaultlinelinewidth", 1.5);

Here is the link到手册的相关部分。

15.3.5 Managing Default Properties

Object properties have two classes of default values, factory defaults (the initial values) and user-defined defaults, which may override the factory defaults.

Although default values may be set for any object, they are set in parent objects and apply to child objects, of the specified object type. For example, setting the default color property of line objects to "green", for the root object, will result in all line objects inheriting the color "green" as the default value.

set (0, "defaultlinecolor", "green");

sets the default line color for all objects. The rule for constructing the property name to set a default value is

default + object-type + property-name

This rule can lead to some strange looking names, for example defaultlinelinewidth" specifies the default linewidth property for line objects.

编辑:

只是强调这一点:您已尝试设置“defaultlinewidth”,这不是如上所述的有效属性。您要设置的属性是“defaultlinelinewidth”

关于plot - 在 .octaverc 中设置默认绘图线宽,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41275362/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com