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

3 vues (au cours des 30 derniers jours)
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.

Réponses (1)

Steven Lord
Steven Lord le 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.

Catégories

En savoir plus sur Polar Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by