Graphviz 点设置纵横比(16:9,4:3 等)
Graphviz dot set aspect ratio(16:9, 4:3 etc)
有没有办法设置点图的纵横比?
我正在尝试获取包含图形并具有特定纵横比的最小矩形。
我一直在寻找这个答案,但找不到任何相关内容。
你可以传入一个数值给ratio
:
digraph G{
ratio=1.3;
node[shape=point, height=0.02, width=0.01];
foo->bar;
}
或者设置大小并传入其中一个选项(查看更多选项here)。
digraph G{
ratio="fill";
size="4,3!";
node[shape=point, height=0.02, width=0.01];
foo->bar;
}
有没有办法设置点图的纵横比? 我正在尝试获取包含图形并具有特定纵横比的最小矩形。
我一直在寻找这个答案,但找不到任何相关内容。
你可以传入一个数值给ratio
:
digraph G{
ratio=1.3;
node[shape=point, height=0.02, width=0.01];
foo->bar;
}
或者设置大小并传入其中一个选项(查看更多选项here)。
digraph G{
ratio="fill";
size="4,3!";
node[shape=point, height=0.02, width=0.01];
foo->bar;
}