mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-15 10:14:21 +01:00
feat: add doc to use marmaid.js in GNU Octave
feat: add doc to use marmaid.js in GNU Octave. Resolve #7073
This commit is contained in:
@@ -87,42 +87,3 @@ graph LR;
|
|||||||

|

|
||||||
|
|
||||||
<!--- cspell:ignore Elle Jaoude Neurodiverse graphbytes imshow savefig --->
|
<!--- cspell:ignore Elle Jaoude Neurodiverse graphbytes imshow savefig --->
|
||||||
|
|
||||||
## 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)
|
|
||||||
|
|||||||
@@ -81,42 +81,3 @@ graph LR;
|
|||||||

|

|
||||||
|
|
||||||
<!--- cspell:ignore Elle Jaoude Neurodiverse graphbytes imshow savefig --->
|
<!--- cspell:ignore Elle Jaoude Neurodiverse graphbytes imshow savefig --->
|
||||||
|
|
||||||
## 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)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user