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 で Directed Graphs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!