Dot: How to decorate graph nodes with black outline while filled with another color?

北城以北 提交于 2019-12-23 09:00:00

问题


I need help with formatting a dot graph. To simplify my question, I have a dot code here which I run through a dot tool:

digraph G
{
   TestNode [label="Test Node", shape="egg" style="filled" color="yellow"]
}

results in this:

I want to have a black outline to this node. How can I do that?


回答1:


Using fillcolor together with color does achieve what you're after:

TestNode [label="Test Node", shape="egg", style="filled", color="black", fillcolor="yellow"]

From the documentation:

Color used to fill the background of a node or cluster assuming style=filled. If fillcolor is not defined, color is used.



来源:https://stackoverflow.com/questions/7168549/dot-how-to-decorate-graph-nodes-with-black-outline-while-filled-with-another-co

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!