Reputation: 874
Want make a mind map like the following:
Image link is not available anymore.
I tried this:
digraph Alf {
size = "15";
node [ shape = record , style=filled, fillcolor="#efefef",fontname=Helvetica, fontsize=10.5, fontcolor="#2b2b2b", height=0.25, width=1, penwidth=0 ];
edge [arrowhead=normal,arrowsize=0.5,len=0.5, color="#bfbfbf"];
root [label ="Autors i teories de la comunicació no verbal"];
1 [ label="es concreta en", fontcolor="#00aeef", fontsize=9.5, fillcolor=white ];
root->1;
1->"LOE"
1->"Estratègies";
1->"Activitats";
1->"Recursos";
2 [label="programes d'aprenentatge", fontcolor="#00aeef", fontsize=9.5, fillcolor=white];
"LOE"->2
"Estratègies"->2;
"Activitats"->2;
"Recursos"->2;
3 [label="es pot fer gràcies a", fontcolor="#00aeef", fontsize=9.5, fillcolor=white];
2->"Comunicació no verbal"->3;
3->"Recordatori de\nconductes innates";
3->"Intencionalitat";
3->"Observació";
3->"Imitació";
}
what is generated this. Very similar, but not the same :-( as you can see.
Can anyone show me the closest possible solution or improve the code?
Upvotes: 3
Views: 5051
Reputation: 40499
I believe you want a node whose shape
is point
as follows:
digraph Alf {
size = "15";
node [ shape = record , style=filled, fillcolor="#efefef",fontname=Helvetica, fontsize=10.5, fontcolor="#2b2b2b", height=0.25, width=1, penwidth=0 ];
edge [arrowhead=normal,arrowsize=0.5,len=0.5, color="#bfbfbf"];
root [label ="Autors i teories de la comunicació no verbal"];
1 [shape=point penwidth height=0 width=0]
root->1 [ label=" es concreta en", fontcolor="#00aeef", fontsize=9.5, fillcolor=white arrowhead=none fontname=Helvetica];
1->"LOE"
1->"Estratègies";
1->"Activitats";
1->"Recursos";
2 [shape=point penwidth height=0 width=0]
"LOE"->2 [arrowhead=none];
"Estratègies"->2 [arrowhead=none];
"Activitats"->2 [arrowhead=none];
"Recursos"->2 [arrowhead=none];
3 [shape=point penwidth=0 height=0 width=0];
2->"Comunicació no verbal" [label=" programes d'aprenentatge", fontcolor="#00aeef", fontsize=9.5, fillcolor=white fontname=Helvetica];
"Comunicació no verbal" -> 3 [label=" es pot fer gràcies a" fontcolor="#00aeef" fontsize=9.5 fillcolor=white arrowhead=none fontname=Helvetica];
3->"Recordatori de\nconductes innates";
3->"Intencionalitat";
3->"Observació";
3->"Imitació";
}
Upvotes: 8
Reputation: 13646
Another possibility:
digraph Alf {
size = "15";
node [ shape = record, style=filled, fillcolor="#efefef", fontname=Helvetica,
fontsize=10.5, fontcolor="#2b2b2b", height=0.25, width=1, penwidth=0 ];
edge [ arrowhead=normal, arrowsize=0.5, len=0.5, fontcolor="#00aeef",
fontname=Helvetica, fontsize=9.5 ];
root [ label ="Autors i teories ..." ];
1 [ style=invis, label="" ];
root->1 [ headclip=false,arrowhead=none ] ;
{
rank=same ;
1 ; "1b" ;
}
"1b" [ shape=none,style=solid,label="es concreta en" ];
1 -> "1b" [ style=invis ];
1->"LOE" [ tailclip=false ];
1->"Estrategies" [ tailclip=false ];
1->"Activitats" [ tailclip=false ];
1->"Recursos" [ tailclip=false ];
2 [ style=invis, label="" ];
"LOE"->2 [ headclip=false,arrowhead=none ] ;
"Estrategies"->2 [ headclip=false,arrowhead=none ];
"Activitats"->2 [ headclip=false,arrowhead=none ];
"Recursos"->2 [ headclip=false,arrowhead=none ];
{
rank=same ;
2 ; "2b" ;
}
"2b" [ shape=none,style=solid,label="programes d'aprenentatge" ];
2 -> "2b" [ style=invis ];
2->"Comunicacio no verbal" [ tailclip=false ];
3 [style=invis, label="" ];
"Comunicacio no verbal" -> 3 [ headclip=false,arrowhead=none ];
{
rank=same ;
3 ; "3b" ;
}
"3b" [ shape=none,style=solid,label="es pot fer gracies a" ];
3 -> "3b" [ style=invis ];
3->"Recordatori de\nconductes innates" [ tailclip=false ];
3->"Intencionalitat" [ tailclip=false ];
3->"Observacio" [ tailclip=false ];
3->"Imitacio" [ tailclip=false ];
}
Upvotes: 4
Reputation: 56466
To get rid of the arrows, just add arrowhead=none
either to the edges or to the default edge definition (edge[...]
) as I did here below :
digraph Alf {
size = "15";
node [ shape = record , style=filled, fillcolor="#efefef",fontname=Helvetica, fontsize=10.5, fontcolor="#2b2b2b", height=0.25, width=1, penwidth=0 ];
edge [arrowhead=normal,arrowsize=0.5,len=0.5, color="#bfbfbf"];
root [label ="Autors i teories de la comunicació no verbal"];
1 [shape=point penwidth height=0 width=0]
root->1 [ label=" es concreta en", fontcolor="#00aeef", fontsize=9.5, fillcolor=white arrowhead=none fontname=Helvetica];
1->"LOE"
1->"Estratègies";
1->"Activitats";
1->"Recursos";
2 [shape=point penwidth height=0 width=0]
edge[arrowhead=none]
"LOE"->2
"Estratègies"->2;
"Activitats"->2;
"Recursos"->2;
edge[arrowhead=normal]
3 [shape=point penwidth=0 height=0 width=0];
2->"Comunicació no verbal" [label=" programes d'aprenentatge", fontcolor="#00aeef", fontsize=9.5, fillcolor=white fontname=Helvetica];
"Comunicació no verbal" -> 3 [label=" es pot fer gràcies a" fontcolor="#00aeef" fontsize=9.5 fillcolor=white arrowhead=none fontname=Helvetica];
3->"Recordatori de\nconductes innates";
3->"Intencionalitat";
3->"Observació";
3->"Imitació";
}
Upvotes: 1