how to change font size of bus number in graph
2 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Bhaskar R
2020-1-4
This answer can fullfill your requirement
In your case
M=[1,2;3,4;4,1;2,3]
g = graph(M(:, 1), M(:, 2));
h = plot(g, 'NodeLabe', {});
t = text(h.XData,h.YData,{'1','2','3','4'},'FontSize',14);
2 个评论
Bhaskar R
2020-1-4
% change 4 to 100 for 100 nodes
t = text(h.XData,h.YData,strsplit(num2str(1:4)),'FontSize',14);
更多回答(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!