How to flip a Matlab tree plot upside down?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192841/image.gif)
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?
0 commentaires
Réponse acceptée
madhan ravi
le 28 Oct 2018
yticklabels([1:10]) %an example
set ( gca, 'ydir', 'reverse' )
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Sparse Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!