Legend in a Graph
3 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I want to create a legend to a graph object. I don't create a bar color i want show a regular legend with the colors of the nodes. Just because i want to shown at what group belong each node and the bar color don't show properly. Could you help me?. Thanks.
2 件のコメント
回答 (2 件)
Mehmed Saad
2020 年 4 月 15 日
編集済み: Mehmed Saad
2020 年 4 月 15 日
figure,plot(data_x,data_y,'.-','MarkerSize',10)
2 件のコメント
Mehmed Saad
2020 年 4 月 15 日
figure
s = [1 1 1 1 1 1 1 9 9 9 9 9 9 9];
t = [2 3 4 5 6 7 8 2 3 4 5 6 7 8];
G = graph(s,t);
plot(G);
hold on
s = [1 1 1 1 1];
t = [2 3 4 5 6];
G = graph(s,t);
plot(G);
v = legend;
v.String = {'1','2'};

参考
カテゴリ
Help Center および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!