小编Sav*_*kin的帖子

图形工具使文本适合顶点

我正在用大标签绘制图表。有没有办法包裹标签,使它们适合尺寸的顶点。

这就是我到目前为止所拥有的

p1 = gt.graph_draw(gr1,
                   output_size=(2000, 6000),
                   pos=pos1,
                   vertex_shape="square",
                   bg_color=(256, 256, 256, 1),
                   vertex_size=20,
                   output='test1.png',
                   vertex_text=gr1.vp['label'],
                   vertex_fill_color=gr1.vp['color'])
Run Code Online (Sandbox Code Playgroud)

例子 先感谢您

python graph-drawing graph-tool

5
推荐指数
0
解决办法
232
查看次数

标签 统计

graph-drawing ×1

graph-tool ×1

python ×1