www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SetThetaAxisTickLabelsForSpecificPolarAxesExample.m
%% Set theta-Axis Tick Labels for Specific Polar Axes % Create a polar plot and assign the polar axes object to the variable % |pax|. Then, specify the _theta_-axis tick values and labels for the polar % axes. Ensure that the |thetaticks| and |thetaticklabels| functions affect % |pax| by passing the polar axes object as the first input argument to the % functions. theta = 0:0.01:2*pi; rho = 50*sin(2*theta); polarplot(theta,rho) pax = gca; thetaticks(pax,[0 90 180 270]) thetaticklabels(pax,{'East','North','West','South'})