rotation of graph node labels
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Roy Goodman
am 4 Jul. 2020
Kommentiert: Roy Goodman
am 7 Jul. 2020
I am plotting some graphs using circular layout, for example
plot(digraph([1 2 3],[2 3 1]),"layout","circle");axis equal
The node labels come out rotated. I can't find a property to set in order to make them stand up straight.
0 Kommentare
Akzeptierte Antwort
Christine Tobler
am 6 Jul. 2020
The labels will be straight in most layouts (all but 'circle', 'layered'). You can first use 'circle' layout and then convert to having no layout and instead setting x, y data explicitly:
p = plot(G, 'Layout', 'circle');
p.XData = XData;
This will make the labels stand straight.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!