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

2 ビュー (過去 30 日間)
Benjamin Cowen
Benjamin Cowen 2017 年 1 月 10 日
回答済み: Steven Lord 2017 年 1 月 10 日
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 Center および File ExchangePolar Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by