Change labels positions for pie chart
84 次查看(过去 30 天)
显示 更早的评论
Hello, I need change this superposition that happen with those percentages, I hope you can say me how to move them to other way for avoid that problem if it can be posible.
Thank you so much
0 个评论
回答(1 个)
Tommy
2020-6-27
One option:
Another option is to grab the handles returned by pie() and manipulate the labels (e.g. move them, rotate them, make them smaller). A crude example:
handles = pie([.1 .1 3 5 10]);
text_handles = handles(2:2:end);
text_handles(1).Position = text_handles(1).Position + [-0.15 -0.02 0];
text_handles(2).Position = text_handles(2).Position + [0.1 0 0];
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!