In MATLAB 2016b, is there a way to specify the range and number of grid lines in the polar plot?

1 次查看(过去 30 天)
I currently have my code:
suptitle('All')
subplot(1,3,1)
polar(a,b,'-o')
hold on
polar(a,c,'-or')
title('XY Plane')
legend('a','b')
subplot(1,3,2)
polar(a,d,'-o')
hold on
polar(a,e,'-or')
title('XZ Plane')
subplot(1,3,3)
polar(a,f,'-o')
hold on
polar(a,g,'-or')
title('YZ Plane')
However, for some reason, the chart grid lines dont really match. I'd like to make them match. The radius of the circle , I would like to set at 300. And I would like 2 concentric circles inside, at 100 and 200. Can this be done? I attached the plot my current code puts out and you can see how the subplot axes don't match.

回答(1 个)

Steven Lord
Steven Lord 2017-1-10
Don't use polar, use polarplot instead. The parent of the polarplot will be a polaraxes and that has properties like ThetaTick and RTick as well as rulers like ThetaAxis and RAxis that give you even more control over customization.

类别

Help CenterFile Exchange 中查找有关 Polar Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by