Zoom and polar axes

69 ビュー (過去 30 日間)
TARAM
TARAM 2019 年 11 月 25 日
コメント済み: Adam Danz 2023 年 2 月 21 日
__Hi guys. I have MATLAB 2017a and I've faced the problem, that zoom doesn't work with polar axes. I've met another one question with the same problem in R2016B version of MATLAB.
__1. Is there any way use ZOOM with polar axes?
__2. Does it work well in newer versions of MATLAB?
  2 件のコメント
hai du
hai du 2023 年 2 月 21 日
移動済み: Adam Danz 2023 年 2 月 21 日
do you think there's a bug on the rlim on this polatplor?
Adam Danz
Adam Danz 2023 年 2 月 21 日
@hai du could you be more specific?
rlim behaves a bit oddly, thought by design, when the minimum limit is <0, if that's what you're running into.

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

採用された回答

Adam Danz
Adam Danz 2019 年 11 月 25 日
編集済み: Adam Danz 2019 年 11 月 25 日
The zoom() feauture seems to be disabled on polaraxes.
You could use set rlim() and thetalim() to zoom into a specific area.
The Antenna Toolbox offers a polarpattern class that does allow for zooming and other interactions but it doesn't technically use a polaraxes.
  4 件のコメント
TARAM
TARAM 2019 年 11 月 27 日
"What function are you using (or would you like to use) to create the temperature plot? "
__I wanted to make temperature plot of antenna array pattern. Pattern is narrow, so, of course, i need ZOOM tool. I solved similar problem few years ago. At that time i drawed everything (lines, tick numbers etc) by myself in rectangular coordiantes. I hoped matlab developers thinked up something to do it faster and more conveniently in REAL polar coordinates.
"you would not need to write a text update function to lable the thetha ticks"
__I mean't, text update function of data cursor to display polar coordinates instead of rectangular (i plotted data using last ).
Pattern__no_zoom____smaller2.png
Pattern__zoomed__with__datatips__smaller.png
Adam Danz
Adam Danz 2019 年 11 月 27 日
I agree that we need to have zoom with polaraxes.
This may or may not help but you could try playing around with rlim() and thetalim() to see if you can zoom into the data. If that works, it would be much simpler to add a couple sliders into your figure so you can interactively zoom into rho and theta areas.
Here's a demo.
% Generate tightly clustered dots
y = rand(1,500)+2;
x = rand(size(y))./4;
[th,rh] = cart2pol(x,y);
pax = polaraxes();
polarplot(th,rh,'.')
191127 041311-MATLAB Online R2019b.png
% zoom into the theta range
thetalim([80,95])
191127 041352-MATLAB Online R2019b.png
% Zoom into the rho range
rlim([1.5,3.1])
191127 041453-MATLAB Online R2019b.png

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by