Orient pie chart in clock wise direction
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Poulomi Ganguli
am 21 Jul. 2023
Bearbeitet: Voss
am 21 Jul. 2023
Hello:
In generally, pie chart shows anti-clock wise orientation with its shades. How to orient it to clock wise direction?
0 Kommentare
Akzeptierte Antwort
Voss
am 21 Jul. 2023
X = [1 3 0.5 2.5 2];
Anti-clockwise (original):
pie(X)
Clockwise:
h = pie(X);
set(h(2:2:end),{'HorizontalAlignment'},get(h(end:-2:2),{'HorizontalAlignment'}))
set(gca(),'XDir','reverse')
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Pie Charts 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!


