フィルターのクリア

PolarPlot Axes Shape Change

4 ビュー (過去 30 日間)
vauntedmango
vauntedmango 2024 年 3 月 13 日
コメント済み: Voss 2024 年 3 月 13 日
Hello everyone! I am trying to replicate the graph (2) generated regarding directivity of sound. I have managed to create a polar plot (1) but am not sure how I can change the shape of the axes so that the range of radii shown as a grid does not start from the centre of the circle. Just wanted to minimise the space taken by the plot if I can remove part of the centre of the plot. From the images, I want 1 to look like 2.
1:
2:
Thank you!

採用された回答

Voss
Voss 2024 年 3 月 13 日
編集済み: Voss 2024 年 3 月 13 日
% data:
th = deg2rad(50:10:140);
r1 = 70+20*rand(size(th));
r2 = 50+20*rand(size(th));
% polaraxes setup:
f = figure('Color',0.94*[1 1 1]);
ax = polaraxes();
polarscatter(ax,0,0,25000,f.Color,'filled','Clipping','off');
ax.ThetaLim = [0 180];
ax.NextPlot = 'add';
% plot:
h1 = polarplot(ax,th,r1,'-r^','MarkerFaceColor','r');
h2 = polarplot(ax,th,r2,'-bv','MarkerFaceColor','b');
legend([h1 h2],{'Baseline','LE3S'},'Location','South')
  2 件のコメント
vauntedmango
vauntedmango 2024 年 3 月 13 日
Looks perfect, thank you!
Voss
Voss 2024 年 3 月 13 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePolar Plots についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by