Matlab Polar Plot Legend does not match with the plot
9 ビュー (過去 30 日間)
古いコメントを表示
When I plot 3 data sets in polar polt, and I try to use legend to identitfy the difference. But the legend does not matcht the plot.
0 件のコメント
回答 (1 件)
Star Strider
2021 年 9 月 20 日
I cannot run that and I amm not certain what you are are plotting. Create a handle for each polarplot call:
th = linspace(0, 2*pi);
figure
hpp1 = polarplot(th, ones(3,100), '-r');
hold on
hpp2 = polarplot(th, ones(3,100)*0.7, '--b');
hpp3 = polarplot(th, ones(3,100)*0.2, '.-k');
hold off
legend([hpp1(1),hpp2(1),hpp3(1)], 'r','b','k')
Experiment with your code.
.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Polar Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!