Main Content


Create legend labels for polar plot



createLabels(p,format,array) adds the specified format label to each array of the polar plot p. The labels are stored as a cell array in the LegendLabels property of p.

Input Arguments

expand all

Polar plot, specified as a scalar handle.

Format for legend label added to the polar plot, specified as a cell array. For more information on legend label format see, legend.

Data Types: char

Values to apply to format , specified as an array. The values can be an array of angles or array of magnitude.


expand all

Create a polar plot of unique values. Generate a legend label for this plot.

p = polarpattern(rand(30,4),'Style','filled');

Version History

Introduced in R2016a