If ratio is numeric, it is taken as the desired aspect ratio. Then, if the actual aspect ratio is less than the desired ratio, the drawing height is scaled up to achieve the desired ratio; if the actual ratio is greater than that desired ratio, the drawing width is scaled up.
sfdp
,因为它使用spring模型,所以倾向于生成正方形图。但是,如果您使用dot
,那么您就添加了rank
和rankdir
这样的属性来根据自己的意愿来塑造图形。你知道吗您可以参考Node, Edge and Graph Attributes来查看sfdp支持哪些属性。你知道吗
尝试使用^{} 属性:
如果原始的图表是这样的:
添加
graph [ratio="1.5"]
属性将使其看起来像这样:UPD:还要注意
ratio
属性是如何与size
属性成对工作的,也许这种组合最适合您。详细的解释在比例文件的链接我已经张贴。你知道吗相关问题 更多 >
编程相关推荐