Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/326.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 图形工具使文本适合顶点_Python_Graph Tool_Graph Drawing - Fatal编程技术网

Python 图形工具使文本适合顶点

Python 图形工具使文本适合顶点,python,graph-tool,graph-drawing,Python,Graph Tool,Graph Drawing,我正在用大标签绘制图表。 是否有一种方法可以将标签包裹起来,使其适合大小的顶点 这就是我目前所拥有的 p1 = gt.graph_draw(gr1, output_size=(2000, 6000), pos=pos1, vertex_shape="square", bg_color=(256, 256, 256, 1),

我正在用大标签绘制图表。 是否有一种方法可以将标签包裹起来,使其适合大小的顶点

这就是我目前所拥有的

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'])
先谢谢你