Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| info:dot:homepage [2026/02/26 09:44] – radeff | info:dot:homepage [2026/04/22 04:40] (Version actuelle) – radeff | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Dot / GraphViz: diagram editor ====== | ====== Dot / GraphViz: diagram editor ====== | ||
| {{tag>pm brainstorm organigramme}} | {{tag>pm brainstorm organigramme}} | ||
| - | {{info: | ||
| - | Graphviz (diminutif de Graph Visualization Software) est un ensemble d' | + | {{: |
| + | |||
| + | Graphviz (diminutif de Graph Visualization Software) est un ensemble d' | ||
| + | |||
| + | Cet ensemble fournit aussi des bibliothèques permettant l' | ||
| Graphviz est un logiciel libre distribué suivant l' | Graphviz est un logiciel libre distribué suivant l' | ||
| Ligne 16: | Ligne 19: | ||
| * https:// | * https:// | ||
| ===== doc ===== | ===== doc ===== | ||
| + | * https:// | ||
| * http:// | * http:// | ||
| * http:// | * http:// | ||
| * http:// | * http:// | ||
| - | * http:// | ||
| * http:// | * http:// | ||
| {{ info: | {{ info: | ||
| - | ===== examples | + | ===== exemple 1 (simple) |
| - | https:// | + | |
| - | + | ||
| - | {{info: | + | |
| <code dot> | <code dot> | ||
| - | graph { | + | digraph |
| a -- b; | a -- b; | ||
| b -- c; | b -- c; | ||
| Ligne 41: | Ligne 40: | ||
| </ | </ | ||
| - | {{ info:dot:graphviz_ex.zip |}} | + | {{info:dot:1.png|}} |
| + | |||
| + | source: https:// | ||
| + | ===== exemple 2 (couleur) ===== | ||
| <code dot> | <code dot> | ||
| - | graph { | + | digraph |
| bgcolor=azure; | bgcolor=azure; | ||
| node [shape=box, color=lightblue2, | node [shape=box, color=lightblue2, | ||
| Ligne 55: | Ligne 57: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | source: https:// | ||
| + | |||
| + | ===== exemple 3 avec intégration HTML, couleurs etc ===== | ||
| + | |||
| + | |||
| + | <code dot> | ||
| + | digraph G { | ||
| + | // Paramètres globaux du graph | ||
| + | graph [bgcolor="# | ||
| + | node [shape=plaintext, | ||
| + | edge [color="# | ||
| + | |||
| + | // Nœud A avec HTML + style | ||
| + | A [label=< | ||
| + | <TABLE BORDER=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | >, fillcolor="# | ||
| + | |||
| + | // Nœud B avec HTML + style | ||
| + | B [label=< | ||
| + | <TABLE BORDER=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | >, fillcolor="# | ||
| + | |||
| + | // Nœud C avec HTML + style | ||
| + | C [label=< | ||
| + | <TABLE BORDER=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | >, fillcolor="# | ||
| + | |||
| + | // Connexions avec styles personnalisés | ||
| + | A -> B [label=" | ||
| + | B -> C [label=" | ||
| + | A -> C [label=" | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | {{ : | ||
| ====== plugins IDE ====== | ====== plugins IDE ====== | ||
| ===== Visual Studio Code (Codium) ===== | ===== Visual Studio Code (Codium) ===== | ||
| Ligne 63: | Ligne 118: | ||
| {{: | {{: | ||
| - | ===== atom ===== | ||
| - | Un petit add-on bien pratique pour visualiser et exporter (svg et xml) vos fichiers .dot depuis votre éditeur favori, [[info: | ||
| - | |||
| - | https:// | ||
| - | |||
| - | < | ||
| - | {{info: | ||
| ===== tools ===== | ===== tools ===== | ||
| <code bash> | <code bash> | ||
| #! / | #! / | ||
| - | # Script to grate graphviz images from dot files | + | # Script to create |
| echo " | echo " | ||