How can I rotate the axis for a polar plot?

조회 수: 59 (최근 30일)
dhhtr
dhhtr 2015년 4월 7일
댓글: mahmoud deghedy 2020년 12월 23일
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,

채택된 답변

Geoff Hayes
Geoff Hayes 2015년 4월 7일
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])

추가 답변 (1개)

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

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by