how to change font size of bus number in graph
조회 수: 1 (최근 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!