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.
Updated for BSD license as requested by Mathworks