Change labels positions for pie chart

66 ビュー (過去 30 日間)
Harry Hoyos Plazas
Harry Hoyos Plazas 2020 年 6 月 26 日
回答済み: Tommy 2020 年 6 月 27 日
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

回答 (1 件)

Tommy
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];

カテゴリ

Help Center および File ExchangePie Charts についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by