File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from graphviz import Digraph
2+
3+ dot = Digraph ("mindmap" , filename = "docs/webapps" )
4+
5+ # Gera PDF
6+ dot .format = "pdf"
7+ dot .render (cleanup = True )
8+
9+ # Gera JPEG
10+ dot .format = "jpg"
11+ dot .render (cleanup = True )
12+
13+ # layout geral
14+ dot .attr (
15+ rankdir = "TB" ,
16+ splines = "ortho"
17+ )
18+
19+ # estilo dos nós
20+ dot .attr (
21+ "node" ,
22+ shape = "box" ,
23+ style = "rounded,filled" ,
24+ fillcolor = "lightyellow" ,
25+ fontname = "Helvetica" ,
26+ )
27+
28+ # estilo das arestas
29+ dot .attr ('edge' ,
30+ minlen = '4' ,
31+ fontsize = '22' ,
32+ fontcolor = '#8B0000' ,
33+ color = 'black' ,
34+ penwidth = '1' ,
35+ fontname = "DejaVu Sans Mono"
36+ )
37+
38+ dot .node ("webapps" , "fflch/webapps\n Sistema em Laravel (era fflch/sites)" ,fillcolor = "lightblue" )
39+
40+
41+ dot .node ("DE" , "Desenvolvimento\n (DE)" )
42+
43+ dot .edge ('webapps' , 'DE' ,minlen = '10' )
44+
45+
46+
47+ dot .render (cleanup = True )
You can’t perform that action at this time.
0 commit comments