From 38c289818ce6c33c97014448edf509431adfd2f8 Mon Sep 17 00:00:00 2001 From: CNOCTAVE Date: Tue, 4 Nov 2025 20:34:13 +0800 Subject: [PATCH] feat: add doc to use marmaid.js in GNU Octave feat: add doc to use marmaid.js in GNU Octave. Resolve #7073 --- docs/ecosystem/tutorials.md | 39 ------------------- .../mermaid/src/docs/ecosystem/tutorials.md | 39 ------------------- 2 files changed, 78 deletions(-) diff --git a/docs/ecosystem/tutorials.md b/docs/ecosystem/tutorials.md index 72fd4d238..8a6a9e8e2 100644 --- a/docs/ecosystem/tutorials.md +++ b/docs/ecosystem/tutorials.md @@ -87,42 +87,3 @@ graph LR; ![Example graph of the Python integration](img/python-mermaid-integration.png) - -## GNU Octave Integration with mermaid-js - -Here's an example of GNU Octave integration with mermaid-js which uses the -octave_mermaid_js package to save graph image. - -```matlab -pkg load octave_mermaid_js -graph = { - "graph LR;" - " A--> B & C & D" - " B--> A & E" - " C--> A & E" - " D--> A & E" - " E--> B & C & D" -} -graph = strjoin(graph, "\n") -[ret, status] = mermaid_js_save(graph, "result.png") -``` - -Here's an example of GNU Octave integration with mermaid-js which uses the -octave_mermaid_js package to show graph image. - -```matlab -pkg load octave_mermaid_js -graph = { - "graph LR;" - " A--> B & C & D" - " B--> A & E" - " C--> A & E" - " D--> A & E" - " E--> B & C & D" -} -graph = strjoin(graph, "\n") -[ret, status] = mermaid_js_imshow(graph) -``` - -Here's a journal article about octave_mermaid_js. -[octave_mermaid_js: Integrating Mermaid.js Diagram Generation into GNU Octave](https://engrxiv.org/preprint/view/5547) diff --git a/packages/mermaid/src/docs/ecosystem/tutorials.md b/packages/mermaid/src/docs/ecosystem/tutorials.md index abe8f5b63..9f0f351a2 100644 --- a/packages/mermaid/src/docs/ecosystem/tutorials.md +++ b/packages/mermaid/src/docs/ecosystem/tutorials.md @@ -81,42 +81,3 @@ graph LR; ![Example graph of the Python integration](img/python-mermaid-integration.png) - -## GNU Octave Integration with mermaid-js - -Here's an example of GNU Octave integration with mermaid-js which uses the -octave_mermaid_js package to save graph image. - -```matlab -pkg load octave_mermaid_js -graph = { - "graph LR;" - " A--> B & C & D" - " B--> A & E" - " C--> A & E" - " D--> A & E" - " E--> B & C & D" -} -graph = strjoin(graph, "\n") -[ret, status] = mermaid_js_save(graph, "result.png") -``` - -Here's an example of GNU Octave integration with mermaid-js which uses the -octave_mermaid_js package to show graph image. - -```matlab -pkg load octave_mermaid_js -graph = { - "graph LR;" - " A--> B & C & D" - " B--> A & E" - " C--> A & E" - " D--> A & E" - " E--> B & C & D" -} -graph = strjoin(graph, "\n") -[ret, status] = mermaid_js_imshow(graph) -``` - -Here's a journal article about octave_mermaid_js. -[octave_mermaid_js: Integrating Mermaid.js Diagram Generation into GNU Octave](https://engrxiv.org/preprint/view/5547)