2
채워진 색상이 다른 노드로 구성된 그래프를 만들려고합니다. 나는이 같은 GV 파일을 만든 :다른 색상의 graphviz 노드
digraph mentions {
"A" -> "B"
"A" -> "C"
"B" -> "C"
"B" -> "A"
"A" [shape=circle, style=filled, fillcolor=red]
"B" [shape=circle, style=filled, fillcolor=green]
"C" [shape=circle, style=filled, fillcolor=purple]
}
그리고 내 명령 행 인수는 다음과 같습니다
ccomps -zX#0-1000 testGraphCalls.gv | \
grep "-" | cat <(echo "digraph mentions {") - <(echo "}") | \
sfdp -Gbgcolor=white -Ecolor=blue \
-Nwidth=1 -Nheight=1 -Nfixedsize=true \
-Nlabel='' -Earrowsize=0.4 -Gsize=75 -Gratio=fill \
-Tpng > test.png
는하지만, 내 흰색 원의 노드는 검은 색으로 설명했다. 노드를 올바르게 채울 수있는 방법에 대한 아이디어가 있습니까?
'dot -Nlabel =' '-Tpng -o test.png testGraphCalls.dot'명령을 실행하면 나에게도 흰색으로 채워진 그래프가 표시됩니다. – user1253952
고맙습니다. 나는 'shape = circle, style = filled'을 꺼냈다. 그러나 각 줄에있는 그것으로, 그것은 작동합니다. 고맙습니다! – user1253952