我想在Graphviz中使用倾斜的多边形(也称平行四边形),问题是平行四边形边框和文本之间的空间太大。
有没有办法去除多边形的内部边距?
digraph G {
poly1[margin=0, width=0, height=0, shape=polygon, label="This is a polygon\nwithout skew"]
poly2[margin=0, width=0, height=0, shape=polygon, label="This is a polygon\nwith skew", skew=0.3]
}
这是先前代码的结果:
正如您所看到的,在我设置倾斜值(在本例中为skew=0.3
)后,多边形的内部边距会大大增加。设置margin=0
,width=0
和height=0
并不能解决这个问题。有没有办法去除多边形的内部边距?