I am using the polar
library with pgfplots
to plot a graph like this:
\begin{tikzpicture}
\begin{polaraxis}
\addplot[mark = none, domain = 0.4:12, samples = 600, data cs = polarrad]{sin(x)};
\end{polaraxis}
\end{tikzpicture}
As described in the manual, this uses radians for the function, but the axis labels are still plotted in degrees. Instead of having the 0, 30, …, 330 tick labels, I would like 0π, π/6, … 11π/6 labels. I am convinced the solution must be quite simple, but I have not been able to find it yet.
Best Answer
I've simplified the fractions a little more
You can introduce yet another
\ifnum
inside the integer check to remove 1 from1pi
but seems like an overkill to me. It's pretty readable in my humble opinion.