点:如何在用另一种颜色填充时用黑色轮廓装饰图节点? [英] Dot: How to decorate graph nodes with black outline while filled with another color?

查看:91
本文介绍了点:如何在用另一种颜色填充时用黑色轮廓装饰图节点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要格式化点图的帮助.为了简化我的问题,我在这里有一个点代码,该代码通过点工具运行:

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"]
}

结果:

我想在此节点上使用黑色轮廓.我该怎么办?

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

推荐答案

结合使用fillcolorcolor确实可以达到您想要的目标:

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

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

文档:

用于填充节点或群集背景的颜色,假定 样式=已填充.如果未定义fillcolor,则使用颜色.

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

这篇关于点:如何在用另一种颜色填充时用黑色轮廓装饰图节点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆