polarscatter error - Adding polar plot to Cartesian axes is not supported.

10 ビュー (過去 30 日間)
Joppy
Joppy 2017 年 9 月 13 日
コメント済み: Joppy 2018 年 4 月 6 日
I have been unable to find any information on this error. I've no idea why it occurs. I am not at all adding a polar plot to a Cartesian plot.
If i run
polarscatter(pi,1)
in the command window, it works fine. But as soon as i run it in the work space, i get the error. What am i doing wrong? And why does this error occur exactly.
  5 件のコメント
Steven Lord
Steven Lord 2018 年 4 月 5 日
Or you can create a polaraxes first, turn hold on, then plot into the existing polaraxes.
Joppy
Joppy 2018 年 4 月 6 日
This is a much nicer solution. Thanks.

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

採用された回答

KSSV
KSSV 2017 年 9 月 13 日
It seems you are trying to plot polarscatter on an existing figure (Cartesian axes) using hold on . If you want to plot it alone close the existing figure and plot or open a new figure and plot. If you want to plot it on existing figure...either use subplot or create a different axes for this.
  2 件のコメント
Joppy
Joppy 2017 年 9 月 13 日
Thanks.
Yes I am 'holding on', but only for figures that produce a polarscatter plot.
If I want to superimpose multiple polarscatter plots, are you suggesting I use subplot?
KSSV
KSSV 2017 年 9 月 13 日
polarscatter(pi,1)
hold on
polarscatter(2*pi,1)

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

その他の回答 (0 件)

カテゴリ

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