thetaticklabels
Set or get angular tick labels for polar axes.
📝Syntax
labels = thetaticklabels()
thetaticklabels(labels)
thetaticklabels('auto')
thetaticklabels('manual')
m = thetaticklabels('mode')
thetaticklabels(ax, ...)
📥Input Arguments
Parameter Description
labels Cell array, string array, character vector, or numeric values converted to labels.
'auto' Generate angular tick labels from angular tick values.
'manual' Keep current angular tick labels.
'mode' Return the angular tick label mode.
ax Target polar axes.
📤Output Arguments
Parameter Description
labels Cell array of angular tick labels.
m 'auto' or 'manual'.
📄Description

thetaticklabels gets or sets labels displayed next to angular ticks.

Setting labels switches angular tick label mode to manual. The number of displayed labels is matched with the number of visible angular ticks.

💡Examples
Set custom angular labels.
polarplot(linspace(0, 2*pi, 80), ones(1, 80));
thetaticks(0:90:360);
thetaticklabels({'E'; 'N'; 'W'; 'S'; 'E'});
labels = thetaticklabels()
🔗See Also
thetaticksrticklabelspolarplot
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub