How can I rotate the axis for a polar plot?

59 vues (au cours des 30 derniers jours)
dhhtr
dhhtr le 7 Avr 2015
Commenté : mahmoud deghedy le 23 Déc 2020
Hi,
Would anyone know how to adjust (rotate) the polar plot function such that the vertical axis starts at 0 degrees - as opposed to 90?
theta=0:0.1:2*pi;
e=cos(theta);
polar(theta,e);
Kind regards,

Réponse acceptée

Geoff Hayes
Geoff Hayes le 7 Avr 2015
See the answer at http://www.mathworks.com/matlabcentral/answers/93690-how-do-i-rotate-or-flip-a-polar-plot which changes the viewpoint specification using view. For your case, you would want to call (after the polar plot has been created)
view([90 -90])

Plus de réponses (1)

Steve Snarski
Steve Snarski le 25 Sep 2019
Use axes properties. To rotate theta = 0 from right side [default] to bottom use following:
set(gca,'ThetaZeroLocation','bottom')

Catégories

En savoir plus sur Polar Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by