【发布时间】:2014-09-02 08:01:24
【问题描述】:
对于数据集,我的饼图和 MATLAB 中的 3D 饼图上的所有内容都很流畅,但是,我注意到即使我将此饼图的 21 条数据输入到饼图调用中,但只有17 出现。
PieChartNums = [ Facebook_count, Google_count, YouTube_count, ThePirateBay_count, StackOverflow_count, SourceForge_count, PythonOrg_count, Reddit_count, KUmail_count, Imgur_count, WOWhead_count, BattleNet_count, Gmail_count, Wired_count, Amazon_count, Twitter_count, IMDB_count, SoundCloud_count, LinkedIn_count, APOD_count, PhysOrg_count];
labels = {'Facebook','Google','YouTube','ThePirateBay','StackOverflow', 'SourceForge', 'Python.org', 'Reddit', 'KU-Email', 'Imgur', 'WOWhead', 'BattleNet', 'Gmail', 'Wired', 'Amazon', 'Twitter', 'IMDB', 'SoundCloud', 'LinkedIn', 'APOD', 'PhysOrg'};
pie3(PieChartNums)
legend(labels,'Location','eastoutside','Orientation','vertical')
这适用于标签和物理图本身。
请原谅百分比簇的格式不好,这只是一个粗略的版本。我尝试了每个方向,甚至在方向之间拆分标签,但没有任何运气。
【问题讨论】:
-
如果任何数据为零,这将是预期的行为。