I know how to plot a pie chart with a legend in Matlab. Now, I am creating a Matlab GUI that includes a pie chart. The pie chart is based on 8 values (numbers), which I derive from the variable 'a1'. Problem: I am not able to create legend for the pie chart.
I really appreciate any help you can provide.
pie(handles.axes5,data.a1); legend(handles.axes5,'lables','Location','southoutside','Orientation','horizontal') labels = {'A','B','C', 'D', 'F', 'G', 'H', 'I'};
Best Answer