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.


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 (2023). 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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Fix some bugs


Fix some bugs.