mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-10 07:44:40 +01:00
add doc to use marmaid.js in GNU Octave
This commit is contained in:
@@ -87,3 +87,42 @@ 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.
|
||||||
|
|
||||||
|
```python
|
||||||
|
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.
|
||||||
|
|
||||||
|
```python
|
||||||
|
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,3 +81,42 @@ 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.
|
||||||
|
|
||||||
|
```python
|
||||||
|
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.
|
||||||
|
|
||||||
|
```python
|
||||||
|
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