donut - easily create a donut chart using pie syntax
Version 1.0.2 (1.89 KB) by
Yang Liu
Donut creates a donut chart with offset slices and custom labels.
The pie chart in Matlab could not be plotted in a donut style (with an area of the center cut out). This function creates a donut chart by changing patch vertices of the pie chart. Thus, it maintains all the syntax and editable properties (offsets slices and specifies the text labels) of pie function. It could be used to display proportions or cyclic colormaps.
Cite As
Yang Liu (2023). donut - easily create a donut chart using pie syntax (https://www.mathworks.com/matlabcentral/fileexchange/110325-donut-easily-create-a-donut-chart-using-pie-syntax), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2016a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.