本文主要是介绍Matlab_learning_2(Pie‘s source code饼状图源码),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
一、源代码
function hh = pie(varargin)
%PIE Pie chart.
% PIE(X) draws a pie plot of the data in the vector X. The values in X
% are normalized via X/SUM(X) to determine the area of each slice of pie.
% If SUM(X) <= 1.0, the values in X directly specify the area of the pie
% slices. Only a partial pie will be drawn if SUM(X) < 1.
%
% PIE(X,EXPLODE) is used to specify slices that should be pulled out from
% the pie. The vector EXPLODE must be the same size as X. The slices
% where EXPLODE is non-zero will be pulled out.
%
% PIE(...,LABELS) is used to label each pie slice with cell array LABELS.
% LABELS must be the same size as X and can only contain strings.
%
% PIE(AX,...) plots into AX instead of GCA.
%
% H = PIE(...) returns a vector containing patch and text handles.
%
% Example
% pie([2 4 3 5],{'North','South','East','West'}
这篇关于Matlab_learning_2(Pie‘s source code饼状图源码)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!