12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

piePurposeSyntaxDescription2piePie chartpie(X)pie(X,explode)h = pie(...)pie(X) draws a pie chart using the data in X. Each element in X is representedas a slice in the pie chart.pie(X,explode) offsets a slice from the pie. explode is a vector or matrix ofzeros and nonzeros that correspond to X. A non-zero value offsets thecorresponding slice from the center of the pie chart, so that X(i,j) is offset fromthe center if explode(i,j) is nonzero. explode must be the same size as X.h = pie(...) returns a vector of handles to patch and text graphics objects.RemarksThe values in X are normalized via X/sum(X) to determine the area of each sliceof the pie. If sum(X)≤1, the values in X directly specify the are of the pie slices.<strong>MATLAB</strong> draws only a partial pie if sum(X)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!