donut - easily create a donut char​t using pie syntax

Version 1.0.2 (1.89 KB) by Yang Liu
Donut creates a donut chart with offset slices and custom labels.
104 Downloads
Updated 1 May 2022

View License

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 (2026). 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 Linux
Tags Add Tags
Version Published Release Notes
1.0.2

Fix some bugs

1.0.1

Fix some bugs.

1.0.0