我想为顶点设置不同的高度和宽度。 使用graph_draw很容易:
read -p 'please enter the ssh server name: ' ssh_name
ssh ${ssh_name} remote_name="$ssh_name" 'bash' <<'EOF'
echo ${remote_name}
exit
EOF
但是graphviz_draw不存在vertex_aspect,并且设置高度和宽度无效。它只绘制圆形而不是椭圆形。
graph_draw(DG, ...
vertex_aspect=1.6,
...
)
非常感谢您的帮助
答案 0 :(得分:1)
您需要将形状设置为&#34;椭圆形&#34; (默认为&#34;圈&#34;):
graphviz_draw(g, vprops={"height": 2, "width": 5, "shape": "oval"})
答案 1 :(得分:0)