I'd like to do a logarithmic polar plot like the one in Wikipedia Polar Plot.
I've come up with the following PGF Plot so far:
\documentclass[border=5mm]{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{polar}
\begin{document}
\pgfplotsset{mypolarplot/.style={%
domain=0:360, % plot full cycle
samples=180, % number of samples; can be locally adjusted
grid=both, % display major and minor grids
major grid style={black},
minor x tick num=3, % 3 minor x ticks between majors
minor y tick num=1, % 1 minor y tick between majors
xtick={0,45,...,360}, % set xticks (degrees)
yticklabel style={anchor=north east}, % move label position
xticklabel=$\pgfmathprintnumber{\tick}^\circ$,
every axis plot/.style={ultra thick},
}}
\begin{tikzpicture}
\begin{polaraxis}[mypolarplot]
\addplot[blue]{abs(cos(x))}; % linear scale
%\addplot[blue]{abs(20*log10(abs(cos(x)))}; % log scale
\end{polaraxis}
\end{tikzpicture}
\end{document}
But I can't get the scaling of the polar plot right, I'd like to have a range of say -40 ... 0 dB for the radius. Any ideas?