PIE does not produce a single handle for the entire plot; instead, it produces a collection of PATCH graphics to represent the slices, and a series of text labels. Updating the PIE would involve first, normalizing the data vector then creating cartesian coordinates from the polar representation of the data vector. Therefore, the most direct way to work around this issue is to call the PIE function repeatedly using the new data while maintaining the same axes.
This segment of code walks through the resulting workaround.
clc, clear all, close all;
a = rand(25,1);
pie(a);
hold on;
b = rand(25,1);
clf('reset')
pie(b)
drawnow;
hold off;
Best Answer