Orient pie chart in clock wise direction
7 次查看(过去 30 天)
显示 更早的评论
Hello:
In generally, pie chart shows anti-clock wise orientation with its shades. How to orient it to clock wise direction?
0 个评论
采纳的回答
Voss
2023-7-21
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Pie Charts 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!