How to plot only half of a polar plot? (i.e. only the lower hemisphere from 90-270)
Mostra commenti meno recenti
Hi guys, I require a polar plot to present my data, however I only want to visually plot and represent the lower half of the polar. I wish for it to display only a lower hemisphere semi-circle from 90-270 and not the rest from 0-90 or 270-360.
If anyone knows how I can produce this I would be extremely grateful!
thanks, Mark.
3 Commenti
Jana
il 11 Mag 2017
You can do this with the command 'thetalim([theta1 theta2]);' just like you would do this for a normal plot.
Derek Burrage
il 7 Set 2018
I have the same problem, but with a complication: My Theta scale follows navigational convention (compass directions) with 0 up (north), 90 right (east), 180 down (south) and 270 left west. I want to plot only the upper half plane, but set(gca,'thetalim',[270,90]) gives an error because the second element must be larger than the first, and reversing the limits yields the lower half plane. A rather unsatisfying work around is to create two figures one for the NW quadrant and one for the NE, and combine them in a graphics editor. I hope someone can suggest a more elegant solution!
Jacob Ward
il 26 Dic 2018
@Derek Burrage
This should do the trick:
thetalim([-90 90])
Risposta accettata
Più risposte (1)
Steven Lord
il 11 Mag 2017
This is an old discussion, but if you're using a release that includes the polaraxes and polarplot functions, you can do this using those functions.
% Create a polaraxes
ax = polaraxes;
% Define the data to plot
r = cosd(0:360);
% Plot the data
polarplot(ax, r);
% Update the theta limits of the polaraxes to show just the first quadrant
ax.ThetaLim = [0 90];
1 Commento
Derek Burrage
il 7 Set 2018
This does not quite address the original problem, which was to plot the lower half plane, not just one quadrant. Fine if you do not want the upper half plane in navigational convention - see my previous comment. Thanks, Derek
Categorie
Scopri di più su Polar Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!