How to remove extra labels from polarplot?

Hello
How do i remove the 0.2,0.4 etc labels in this polarplot? Also, I want to rotate the plot so that 90 degrees point is where the zero degree is right. now.

답변 (2개)

VBBV
VBBV 2023년 2월 18일
편집: VBBV 2023년 2월 18일

0 개 추천

ax = gca
ax.RTick = []
ax.RTickLabelRotation = 90;
After plotting call the axes and set the RTick property to [] and RTick rotation to 90 deg

댓글 수: 1

VBBV
VBBV 2023년 2월 18일
편집: VBBV 2023년 2월 18일
thetaticks([0 90 180 270]);
thetaticklabels({'90','180','270','0'})
Sorry, to rotate the angles around polarplot, use thetaticks and thetaticklables

댓글을 달려면 로그인하십시오.

Star Strider
Star Strider 2023년 2월 18일
See PolarAxes Properties for all the options.
th = rand(1,5)*2*pi;
r = rand(size(th));
figure
polarplot(th,r)
Ax = gca;
Ax.ThetaZeroLocation = 'bottom'; % Rotate 'Theta' Grid
Ax.ThetaDir = 'clockwise'; % Optional
Ax.RTickLabel = [];
Make appropriate changes to get the result you want.
.

카테고리

도움말 센터File Exchange에서 Polar Plots에 대해 자세히 알아보기

제품

릴리스

R2022b

질문:

2023년 2월 18일

답변:

2023년 2월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by