When plot graph vertex labels cut the edges, how to avoid it?
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Sugandhi
2023-3-20
Hi Chathuranga kumara,
I understand that labels of nodes in the graph are overlapping with edges.
One possible workaround could be manipulating graph plot properties by providing custom node coordinates for the graph nodes, which can be done by setting XData or YData properties of graph plot object. Another way could be by using layout method of graph plot object.
Above command changes the layout of graph plot H by using an automatic choice of layout method based on the structure of the graph. The layout function modifies the XData and YData properties of H.
For more understanding kindly go through the following links –
0 个评论
更多回答(1 个)
Matt J
2023-3-20
You can remove the node labels as follows:
h=plot(graph(bucky));
h.NodeLabel={};
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!