thetalim
Set or get angular limits for polar axes.
📝Syntax
lims = thetalim()
thetalim([thetamin, thetamax])
thetalim('auto')
thetalim('manual')
m = thetalim('mode')
thetalim(ax, ...)
📥Input Arguments
Parameter Description
[thetamin, thetamax] Two-element vector of angular limits in degrees. The second value must be greater than the first value.
'auto' Use automatic angular limits, currently [0 360].
'manual' Keep the current angular limits.
'mode' Return the angular limits mode.
ax Target polar axes.
📤Output Arguments
Parameter Description
lims Two-element vector of angular limits in degrees.
m 'auto' or 'manual'.
📄Description

thetalim gets or sets angular limits for the current polar axes. Unlike polarplot data angles, angular limits are expressed in degrees.

Setting numeric angular limits switches angular limit mode to manual.

💡Examples
Display only the upper half of a polar plot.
theta = linspace(0, pi, 100);
polarplot(theta, sin(theta));
thetalim([0 180]);
lims = thetalim()
🔗See Also
thetaticksthetaticklabelsrlimpolarplot
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub