Using a char matrix as a text legend
Show older comments
I would like using the text contained in a char matrix named "textlegend" to fill a legend of a pie figure.
my code to generate the pie:
pie([total(:,2)]);
then I want to generate the legend for the pie. Each part of the pie correspond to a ligne in the textlegend matrix. for example the first part of the pie must have textlegend(1,:) as legend the second part of the pie textlegend(2,:), etc... the size of textlegend matrix fit with the number of pie part of course! but is not constant!
Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Pie Charts in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!