以下是使用点语的代码。
subgraph cluster1
{
node[style=filled];
color=blue;
b0->b1;
label ="Tada"; // I want this to show as underlined.
}
您可以使用类似HTML的标签和<u>
标签:
digraph cluster1
{
node[style=filled, color=blue];
b0->b1;
label = <<u>Tada</u>>; // I want this to show as underlined.
}
结果如下:
请注意,您的color=blue
声明未应用于任何元素。我将其移入node
。
正如评论中指出的那样,这目前仅适用于svg输出。我在运行10.14.6的Mac上尝试了png和pdf,但未加下划线。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句