thetaticklabels
Gets or sets the text of the angular tick labels of a polar axes.
Category: Graphics > 2-D and 3-D Plots
Syntax
thetaticklabels(labels)
Sets the labels shown at the angular ticks.
labels = thetaticklabels
Returns the current labels.
Description
The labels are assigned to the ticks in order, so set the positions first with thetaticks. If there are fewer labels than ticks, the list is repeated.
Input arguments
labels- Cell array of character vectors, one for each tick.
Output arguments
labels- Cell array of the current labels.
Example
Compass directions
polarplot(0:0.1:2*pi, ones(1, 63))
thetaticks(0:90:270)
thetaticklabels({'E', 'N', 'W', 'S'})
disp(thetaticklabels)
Output
{'E'}
{'N'}
{'W'}
{'S'}