How do I stop scientific notation in polar plot axes

5 views (last 30 days)
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?

Accepted Answer

Walter Roberson
Walter Roberson on 20 Mar 2019
ax = gca;
ax.RAxis.Exponent = 0;
  2 Comments
Adam Danz
Adam Danz on 20 Mar 2019
Edited: Adam Danz on 20 Mar 2019
Another way to get the axis handle without relying on the current axis.
h = polarplot(theta,rho);
ax = h.Parent;
Michael
Michael on 20 Mar 2019
Thanks so much to both of you!!! That was perfect!

Sign in to comment.

More Answers (0)

Categories

Find more on Polar Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!