フィルターのクリア

How to flip a Matlab tree plot upside down?

1 回表示 (過去 30 日間)
Jonathan
Jonathan 2018 年 10 月 28 日
編集済み: Jonathan 2018 年 11 月 1 日
The documentation for treeplot describes an example where a unique root node located at the top of the graph is parent to several "layers" of nodes in a descending order.
I'd like to somehow flip this graph about the horizontal axis so that the root node ends up at the base of the now reversed tree. Then I'd like to add labels to the nodes.
Any idea to get me started?

採用された回答

madhan ravi
madhan ravi 2018 年 10 月 28 日
yticklabels([1:10]) %an example
set ( gca, 'ydir', 'reverse' )
  2 件のコメント
Jonathan
Jonathan 2018 年 11 月 1 日
Thank you, that did exactly what I needed. I particularly appreciate that the labels I added to the treeplot before flipping it stayed attached to the right nodes and were not flipped themselves. I had anticipated more complication in that regard!
madhan ravi
madhan ravi 2018 年 11 月 1 日
Anytime buddy :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSparse Matrices についてさらに検索

タグ

製品


リリース

R2013a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by