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 [2024/03/08 07:59] – [tools] 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:// | * http:// | ||
| {{ info: | {{ info: | ||
| - | ===== examples | + | ===== exemple 1 (simple) |
| - | https:// | + | |
| - | + | ||
| - | {{info: | + | |
| <code dot> | <code dot> | ||
| - | graph { | + | digraph |
| a -- b; | a -- b; | ||
| b -- c; | b -- c; | ||
| Ligne 42: | Ligne 40: | ||
| </ | </ | ||
| - | {{ info:dot:graphviz_ex.zip |}} | + | {{info:dot:1.png|}} |
| + | |||
| + | source: https:// | ||
| + | |||
| + | ===== exemple 2 (couleur) ===== | ||
| + | <code dot> | ||
| + | digraph { | ||
| + | bgcolor=azure; | ||
| + | node [shape=box, color=lightblue2, | ||
| + | edge [arrowsize=2, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | 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 51: | 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://github.com/sverweij/ | + | ===== tools ===== |
| + | <code bash> | ||
| + | #! /usr/bin/bash | ||
| + | # Script to create | ||
| - | < | + | echo " |
| + | echo " | ||
| + | \ | ||
| + | bmp : Windows Bitmap Format\ | ||
| + | gif : GIF\ | ||
| + | tif/tiff : TIFF (Tag Image File Format)\ | ||
| + | jpg/ | ||
| + | png : Portable Network Graphics format\ | ||
| + | svg/svgz : Scalable Vector Graphics\ | ||
| + | dia : Dia format\ | ||
| + | fig : FIG\ | ||
| + | hpgl : HP-GL/2\ | ||
| + | ico : Icon Image File Format\ | ||
| + | ps : PostScript\ | ||
| + | ps2 : PostScript for PDF\ | ||
| + | pdf : Portable Document Format (PDF)" | ||
| + | |||
| + | read format | ||
| + | echo "which dot file?" | ||
| + | |||
| + | ls *.dot | ||
| + | read file | ||
| + | |||
| + | dot -T$format $file -o $file.$format | ||
| + | </ | ||
| - | {{info: | ||
| - | ===== tools ===== | ||
| {{ : | {{ : | ||
| Ligne 65: | Ligne 155: | ||
| Autres logiciels similaires | Autres logiciels similaires | ||
| - | https:// | + | * https:// |
| + | * https:// | ||