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

3 views (last 30 days)
Benjamin Cowen
Benjamin Cowen on 10 Jan 2017
Answered: Steven Lord on 10 Jan 2017
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.

Answers (1)

Steven Lord
Steven Lord on 10 Jan 2017
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.

Tags

Community Treasure Hunt

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

Start Hunting!