简单的方法(内置函数)将主标题放在八度的情节中

Easy way(builtin function) to put Main title in plot in octave

我正在使用 octave 在同一情节中绘制子情节并想添加一般标题 [=18= 中没有像 sgtitle 这样的内置函数]matlab 就像 this old question 有一个解决方案,但没有使用任何很酷的内置函数和八度音阶。也在这里 Octave - Bugs: bug #55019, new sgtitle function 我发现八度音阶中有 sgtitle 但找不到文档或包名称或任何东西......是不是还没有完全实现或者有其他选择???

我问的是包或 bultin 函数而不是实现我会写或从某人那里复制

取决于您对“内置函数”的定义与 'workaround'。

full-window 标题只是相对于空 'whole window' 轴定位的标题,而不是相对于仅占 [= 的一小部分的子图定位的字幕33=]在特定位置。

因此,在空 whole-window 轴上添加标题的 'builtin' 方法是简单地在空 whole-window 轴上添加标题。

t = 0:0.01:2*pi;
hold on
s1 = subplot( 2, 2, 1 ); plot( t, sin(t) ); set( s1, 'title', 'Sine of t' );
s2 = subplot( 2, 2, 2 ); plot( t, cos(t) ); set( s2, 'title', 'Cosine of t' );
s3 = subplot( 2, 2, 3 ); plot( t, tan(t) ); set( s3, 'title', 'Tangent of t' );
s4 = subplot( 2, 2, 4 ); plot( t, cot(t) ); set( s4, 'title', 'Cotangent of t' );
S  = axes( 'visible', 'off', 'title', 'Trigonometric Functions' );
hold off

在我看来,这是 'builtin' 的结果(在这一点上,我不认为在主轴 object 上设置标题会成为内置功能比在各个子图轴上设置标题 objects).

如果 'builtin' 你的意思是“我想使用 single-word 命令来执行此操作而不是依赖 built-in 图形属性”,那么不,八度音程不会提供这么方便的功能。