pie2
Version 1.0.0.0 (8.19 KB) by
Richard de Garis
Modification of the Matlab PIE function to account for label overlaps
There are 4 'hacks' to the PIE function:
1) pie values are scaled regardless of whether the sum > 1
2) labels on the left of the pie are 'right' aligned & labels of the right are 'left' aligned. The standard PIE function uses 'center' alignment.
3) overlapping labels are moved along the y-axis and leader lines are drawn for added clarity.
4) the Matlab function MCODEREGISTER has been replaced with the Matlab function MAKEMCODE.
Cite As
Richard de Garis (2026). pie2 (https://au.mathworks.com/matlabcentral/fileexchange/23975-pie2), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Labels and Styling > Labels and Annotations > Axis Labels >
- MATLAB > Graphics > 2-D and 3-D Plots > Data Distribution Plots > Pie Charts >
Find more on Axis Labels in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Updated for BSD license as requested by Mathworks |
