Zoom and polar axes

62 views (last 30 days)
TARAM
TARAM on 25 Nov 2019
Commented: Adam Danz on 21 Feb 2023
__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 Comments
hai du
hai du on 21 Feb 2023
Moved: Adam Danz on 21 Feb 2023
do you think there's a bug on the rlim on this polatplor?
Adam Danz
Adam Danz on 21 Feb 2023
@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.

Sign in to comment.

Accepted Answer

Adam Danz
Adam Danz on 25 Nov 2019
Edited: Adam Danz on 25 Nov 2019
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 Comments
TARAM
TARAM on 27 Nov 2019
"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 on 27 Nov 2019
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

Sign in to comment.

More Answers (0)

Categories

Find more on Polar Plots in Help Center and File Exchange

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!