runmat 0.4.9-dev.0 → 0.4.9-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/stdlib.snapshot +0 -0
- package/dist/generated/builtin-examples-catalog.d.ts.map +1 -1
- package/dist/generated/builtin-examples-catalog.js +1 -1
- package/dist/generated/builtin-examples-catalog.js.map +1 -1
- package/dist/generated/builtins/suptitle.d.ts +4 -0
- package/dist/generated/builtins/suptitle.d.ts.map +1 -0
- package/dist/generated/builtins/suptitle.js +94 -0
- package/dist/generated/builtins/suptitle.js.map +1 -0
- package/dist/generated/builtins-manifest.d.ts.map +1 -1
- package/dist/generated/builtins-manifest.js +21 -0
- package/dist/generated/builtins-manifest.js.map +1 -1
- package/dist/lsp/runmat_lsp.d.ts +2 -2
- package/dist/lsp/runmat_lsp.js +4 -4
- package/dist/lsp/runmat_lsp_bg.wasm +0 -0
- package/dist/lsp/runmat_lsp_bg.wasm.d.ts +2 -2
- package/dist/pkg-web/runmat_wasm_web.js +2 -2
- package/dist/pkg-web/runmat_wasm_web_bg.wasm +0 -0
- package/dist/runtime/stdlib.snapshot +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suptitle.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/suptitle.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAyFjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// @generated by scripts/generate-builtins.cjs
|
|
2
|
+
// Do not edit by hand.
|
|
3
|
+
const builtinDoc = {
|
|
4
|
+
"title": "suptitle",
|
|
5
|
+
"category": "plotting",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"suptitle",
|
|
8
|
+
"sgtitle",
|
|
9
|
+
"super title",
|
|
10
|
+
"subplot title",
|
|
11
|
+
"figure title",
|
|
12
|
+
"matlab suptitle"
|
|
13
|
+
],
|
|
14
|
+
"summary": "Set a title centered above the entire figure, especially for older MATLAB subplot code.",
|
|
15
|
+
"requires_feature": null,
|
|
16
|
+
"tested": {
|
|
17
|
+
"unit": "builtins::plotting::suptitle::tests"
|
|
18
|
+
},
|
|
19
|
+
"description": "`suptitle` sets or updates the same figure-level title as `sgtitle`. It exists for compatibility with MATLAB code in the wild that uses the older helper name for subplot layouts. In RunMat, it targets the current figure by default or an explicit figure handle when one is passed, returns a text handle, and participates in `get` and `set` through the shared plotting property system.",
|
|
20
|
+
"behaviors": [
|
|
21
|
+
"`suptitle(txt)` updates the current figure and returns the super-title text handle.",
|
|
22
|
+
"`suptitle(fig, txt, ...)` targets an explicit figure handle when the handle exists.",
|
|
23
|
+
"String scalars, char arrays, string arrays, and cell arrays can all be used to create multiline super titles.",
|
|
24
|
+
"Text styling properties such as `FontSize`, `FontWeight`, `FontAngle`, `Color`, `Interpreter`, and `Visible` use the shared plotting text-property system.",
|
|
25
|
+
"`suptitle` and `sgtitle` update the same figure-level title object."
|
|
26
|
+
],
|
|
27
|
+
"examples": [
|
|
28
|
+
{
|
|
29
|
+
"description": "Add a super title above a subplot figure",
|
|
30
|
+
"input": "subplot(2, 1, 1);\nplot(1:10, rand(1, 10));\nsubplot(2, 1, 2);\nplot(1:10, rand(1, 10));\nsuptitle('Experiment Summary');"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"description": "Style the figure-level title and inspect the returned handle",
|
|
34
|
+
"input": "subplot(1, 2, 1);\nimagesc(peaks(20));\nsubplot(1, 2, 2);\nimagesc(peaks(20));\nh = suptitle('Field Comparison', 'FontSize', 18, 'FontWeight', 'bold');\nget(h, 'Type')",
|
|
35
|
+
"output": "ans =\n 'text'"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"description": "Target an explicit figure handle",
|
|
39
|
+
"input": "fig = figure(42);\nsubplot(1, 2, 1);\nplot(0:0.1:1, sin(0:0.1:1));\nsubplot(1, 2, 2);\nplot(0:0.1:1, cos(0:0.1:1));\nsuptitle(fig, 'Sine and Cosine');"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"faqs": [
|
|
43
|
+
{
|
|
44
|
+
"question": "How is suptitle different from sgtitle?",
|
|
45
|
+
"answer": "In RunMat, `suptitle` and `sgtitle` update the same figure-level super title. `suptitle` is provided as a compatibility spelling for MATLAB code that uses the older helper name."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"question": "How is suptitle different from title?",
|
|
49
|
+
"answer": "`title` attaches text to the current axes, so each subplot can have its own panel title. `suptitle` attaches text to the figure as a whole and is drawn once above all panels."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"question": "Can I update the super title after creating it?",
|
|
53
|
+
"answer": "Yes. `suptitle` returns a text handle, so you can inspect or update it with `get` and `set`.\n\n```matlab\nh = suptitle('Initial Title');\nset(h, 'String', 'Updated Title', 'FontWeight', 'bold');\n```"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"links": [
|
|
57
|
+
{
|
|
58
|
+
"label": "sgtitle",
|
|
59
|
+
"url": "./sgtitle"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"label": "subplot",
|
|
63
|
+
"url": "./subplot"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"label": "title",
|
|
67
|
+
"url": "./title"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"label": "get",
|
|
71
|
+
"url": "./get"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"label": "set",
|
|
75
|
+
"url": "./set"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"label": "Complete plotting guide",
|
|
79
|
+
"url": "/blog/matlab-plotting-guide"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"source": {
|
|
83
|
+
"label": "`crates/runmat-runtime/src/builtins/plotting/ops/suptitle.rs`",
|
|
84
|
+
"url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/plotting/ops/suptitle.rs"
|
|
85
|
+
},
|
|
86
|
+
"key": "suptitle",
|
|
87
|
+
"slug": "suptitle",
|
|
88
|
+
"aliases": [],
|
|
89
|
+
"categoryPath": [
|
|
90
|
+
"plotting"
|
|
91
|
+
]
|
|
92
|
+
};
|
|
93
|
+
export default builtinDoc;
|
|
94
|
+
//# sourceMappingURL=suptitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suptitle.js","sourceRoot":"","sources":["../../../src/generated/builtins/suptitle.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,UAAU;IACtB,UAAU,EAAE;QACV,UAAU;QACV,SAAS;QACT,aAAa;QACb,eAAe;QACf,cAAc;QACd,iBAAiB;KAClB;IACD,SAAS,EAAE,yFAAyF;IACpG,kBAAkB,EAAE,IAAI;IACxB,QAAQ,EAAE;QACR,MAAM,EAAE,qCAAqC;KAC9C;IACD,aAAa,EAAE,iYAAiY;IAChZ,WAAW,EAAE;QACX,qFAAqF;QACrF,qFAAqF;QACrF,+GAA+G;QAC/G,4JAA4J;QAC5J,qEAAqE;KACtE;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,0CAA0C;YACzD,OAAO,EAAE,2HAA2H;SACrI;QACD;YACE,aAAa,EAAE,8DAA8D;YAC7E,OAAO,EAAE,yKAAyK;YAClL,QAAQ,EAAE,mBAAmB;SAC9B;QACD;YACE,aAAa,EAAE,kCAAkC;YACjD,OAAO,EAAE,wJAAwJ;SAClK;KACF;IACD,MAAM,EAAE;QACN;YACE,UAAU,EAAE,yCAAyC;YACrD,QAAQ,EAAE,mLAAmL;SAC9L;QACD;YACE,UAAU,EAAE,uCAAuC;YACnD,QAAQ,EAAE,gLAAgL;SAC3L;QACD;YACE,UAAU,EAAE,iDAAiD;YAC7D,QAAQ,EAAE,0MAA0M;SACrN;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,WAAW;SACnB;QACD;YACE,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,WAAW;SACnB;QACD;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;QACD;YACE,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,OAAO;SACf;QACD;YACE,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,OAAO;SACf;QACD;YACE,OAAO,EAAE,yBAAyB;YAClC,KAAK,EAAE,6BAA6B;SACrC;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,+DAA+D;QACxE,KAAK,EAAE,4GAA4G;KACpH;IACD,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,UAAU;KACX;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtins-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/builtins-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,eAAO,MAAM,eAAe,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"builtins-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/builtins-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,eAAO,MAAM,eAAe,EAAE,oBAAoB,EAs5PjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAiZ9D,CAAC;AAEF,eAAO,MAAM,4BAA4B,sEAC0C,CAAC"}
|
|
@@ -7189,6 +7189,26 @@ export const builtinManifest = [
|
|
|
7189
7189
|
"summary": "Sum elements of scalars, vectors, matrices, or N-D tensors with MATLAB-compatible options.",
|
|
7190
7190
|
"exampleCount": 6
|
|
7191
7191
|
},
|
|
7192
|
+
{
|
|
7193
|
+
"key": "suptitle",
|
|
7194
|
+
"title": "suptitle",
|
|
7195
|
+
"slug": "suptitle",
|
|
7196
|
+
"aliases": [],
|
|
7197
|
+
"category": "plotting",
|
|
7198
|
+
"categoryPath": [
|
|
7199
|
+
"plotting"
|
|
7200
|
+
],
|
|
7201
|
+
"keywords": [
|
|
7202
|
+
"suptitle",
|
|
7203
|
+
"sgtitle",
|
|
7204
|
+
"super title",
|
|
7205
|
+
"subplot title",
|
|
7206
|
+
"figure title",
|
|
7207
|
+
"matlab suptitle"
|
|
7208
|
+
],
|
|
7209
|
+
"summary": "Set a title centered above the entire figure, especially for older MATLAB subplot code.",
|
|
7210
|
+
"exampleCount": 3
|
|
7211
|
+
},
|
|
7192
7212
|
{
|
|
7193
7213
|
"key": "surf",
|
|
7194
7214
|
"title": "surf",
|
|
@@ -8423,6 +8443,7 @@ export const builtinDocLoaders = {
|
|
|
8423
8443
|
"subsasgn": () => import("./builtins/subsasgn.js").then((mod) => mod.default),
|
|
8424
8444
|
"subsref": () => import("./builtins/subsref.js").then((mod) => mod.default),
|
|
8425
8445
|
"sum": () => import("./builtins/sum.js").then((mod) => mod.default),
|
|
8446
|
+
"suptitle": () => import("./builtins/suptitle.js").then((mod) => mod.default),
|
|
8426
8447
|
"surf": () => import("./builtins/surf.js").then((mod) => mod.default),
|
|
8427
8448
|
"surfc": () => import("./builtins/surfc.js").then((mod) => mod.default),
|
|
8428
8449
|
"svd": () => import("./builtins/svd.js").then((mod) => mod.default),
|