How do I stop scientific notation in polar plot axes

I'm using the polarplot function and i get my nice plot but the "radius" values are printing in scientific notation. I found the rtickformat funtion to allow me to set the precision of the tick marks but when I use the formatting of rtickformat('%5.3f') to change the tick marks it gives me tick marks with labels like 2.000 x 10^-3 instead of 0.002 which is what I would prefer.
Does anyone know how I can make it turn off the scientific notation?

 채택된 답변

Walter Roberson
Walter Roberson 2019년 3월 20일
ax = gca;
ax.RAxis.Exponent = 0;

댓글 수: 2

Adam Danz
Adam Danz 2019년 3월 20일
편집: Adam Danz 2019년 3월 20일
Another way to get the axis handle without relying on the current axis.
h = polarplot(theta,rho);
ax = h.Parent;
Thanks so much to both of you!!! That was perfect!

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

추가 답변 (0개)

카테고리

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

질문:

2019년 3월 20일

댓글:

2019년 3월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by