Can i adjust nodes in digraph?
3 ビュー (過去 30 日間)
古いコメントを表示
John Federick Ferre
2019 年 1 月 16 日
コメント済み: Walter Roberson
2019 年 1 月 17 日
Are there any way on how to adjust the nodes in the graph?
採用された回答
Christine Tobler
2019 年 1 月 17 日
You can't directly drag the nodes of a GraphPlot object. Indirectly, you can modify the XData, YData and ZData properties of the object:
p = plot(graph('A', 'B'));
p.XData(1) = 3;
If you are up for a bit of configuration, here is a blog post which shows a way to allow the GraphPlot nodes to be dragged by mouse:
その他の回答 (1 件)
Walter Roberson
2019 年 1 月 17 日
編集済み: Walter Roberson
2019 年 1 月 17 日
No, the callbacks simply are not there inside GraphPlot objects. You would have to fake it with axes level callbacks modifying coordinates inside the object. This is not as straight forward as it might seem as it is a non-trivial object and delegates a bunch to a Java Beans object too.
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!