I did some calculations in Mathematica that gave me a contour plot:
To include the output I wanted to however draw it with pfgplot. But there I don't get it to work, first of all the y-axis doesn't start at 0 and second I cannot find a specifier to fill the areas between the lines. The part that is white in the plot I am trying to reproduce is an area of complex values that I wanted to exclude as well. My MWE up to now looks like
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat = 1.7}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel = $x$
, ylabel = $y$
, domain = 1:2
, y domain = 0:90
, view = {0}{90}
]
\addplot3[
contour gnuplot={number = 30,labels={false}},
thick
]{-2.051^3*1000/(2*3.1415*(2.99*10^2)^2)/(x^2*cos(y)^2)};
\end{axis}
\end{tikzpicture}
\end{document}
with the following output
It should be a common problem but I couldn't find a solution. Another thing that I tried was using addplot3 with surf, but the way how the colors are put together didn't seem to work right
\addplot3[surf,shader=interp,samples=2, patch type=bilinear]
Best Answer
Another possibility: filled contours with
Asymptote
, MWE: