我只能想到一个解决方案:增加传递给的theta值 polarplot 在图中获得更大的角度,然后重新标记theta轴:
polarplot
stretch = 3; % stretch factor th = linspace(-pi/2,pi/2,100); polarplot(th*stretch,1.1+zeros(size(th)),'g'); % apply strech to theta ax = gca; thetalim([-5 5]*stretch) % take stretch into account when setting theta axis limit rlim([1.05 1.12]) ax = gca; ax.ThetaTickLabel = strsplit(num2str((ax.ThetaTick/stretch))); % correct theta labels
在最后一行中,我保持默认的theta ticks并重新标记它们。您可能更喜欢手动指定其他值,例如
ax.ThetaTick = stretch*(-5:5); % specify theta ticks, including stretch ax.ThetaTickLabel = strsplit(num2str((ax.ThetaTick/stretch))); % correct theta labels