thetaticks

Gets or sets the angular tick positions of a polar axes.

Category: Graphics > 2-D and 3-D Plots

Syntax

thetaticks(ticks)

Sets tick positions, in degrees.

ticks = thetaticks

Returns the current tick positions.

thetaticks('auto')

Restores automatic ticks.

Description

Use it to place grid lines at meaningful angles, for instance every 45 degrees. Combine with thetaticklabels to give the ticks other names.

Input arguments

ticks
Vector of angles in degrees.

Output arguments

ticks
Row vector of tick angles in degrees.

Example

Ticks every 45 degrees

polarplot(0:0.1:2*pi, ones(1, 63))
thetaticks(0:45:315)
disp(thetaticks)
Output
     0    45    90   135   180   225   270   315

See also

thetaticklabels thetatickformat rticks thetalim