Pie chart without labels
古いコメントを表示
Hi all, I have created a pie chart but I want to remove all the labels on the exterior of the pie so I just have the partitioned pie in the figure. Does anyone know how to do this? I have seen options to change the labels but not to remove them entirely from the pie chart (at least if they are not visible on the figure that would be also be fine)
This pie chart is an example of what I would like to achieve. Hopefully this makes it a bit clearer. Thanks in advance!
This pie chart is an example of what I would like to achieve. Hopefully this makes it a bit clearer. Thanks in advance!1 件のコメント
Rik
2019 年 8 月 15 日
What code are you currently using?
採用された回答
その他の回答 (1 件)
Oren B
2019 年 8 月 15 日
f = figure(1);
X = [1 3 0.5 2.5 2];
ax= axes('parent',f);
pie(X,'parent',ax);
%% get the axis text children
TextChildren = findobj(ax,'Type','text');
%% set the text visible off
set(TextChildren,'visible','off')
カテゴリ
ヘルプ センター および File Exchange で Pie Charts についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!