How can I rotate the axis for a polar plot?
66 次查看(过去 30 天)
显示 更早的评论
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,
0 个评论
采纳的回答
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
2019-9-25
Use axes properties. To rotate theta = 0 from right side [default] to bottom use following:
set(gca,'ThetaZeroLocation','bottom')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polar Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!