gpt4 book ai didi

形状=圆形的节点的大小

转载 作者:行者123 更新时间:2023-12-03 07:27:32 26 4
gpt4 key购买 nike

我正在尝试以这种方式设置节点的大小:

controller[shape=circle,width=.5,label="Controller",style=filled,fillcolor="#8EC13A"];

但是这三个节点的大小不同。如何设置固定大小?

最佳答案

摘自 DOT 指南 http://www.graphviz.org/pdf/dotguide.pdf第 4 页上有以下内容:

When drawn, a node’s actual size is the greater of the requested size and the area needed for its text label, unless fixedsize=true, in which case the width and height values are enforced.

因此,您只需将 fixedsize=true 添加到您的代码

关于形状=圆形的节点的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1265996/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com