PolarPlot[]
is a handicapped plotting function (it doesn't support Filling
, for example). Much easier with other functions:
h[r_, f_] := r^2 Cos[f]
Quiet@Show[
ContourPlot[h[Sqrt[x^2 + y^2], ArcTan[x, y]], {x, 0, 1}, {y, 0, 1},
RegionFunction -> Function[{x, y, f}, 0 < ArcTan[x, y] < Pi/3 && x^2 + y^2 < 1],
Contours -> 10, AspectRatio -> 1],
Graphics@Circle[]]
Another possibility:
Plot3D[h[Sqrt[x^2 + y^2], ArcTan[x, y]],
{x, -1, 1},
{y, -1, 1},
AspectRatio -> 1,
ColorFunction -> "SunsetColors",
MeshFunctions -> {#3 &},
Mesh -> 7,
PlotStyle -> Directive[Specularity[White, 50], Opacity[0.8]]]
You may even draw your Pi/3 angle on the surface:
Plot3D[h[Sqrt[x^2 + y^2], ArcTan[x, y]],
{x, -1, 1},
{y, -1, 1},
AspectRatio -> 1,
ColorFunction -> "SunsetColors",
MeshFunctions -> {UnitBox@(ArcTan[#2, #1] - Pi/3) &},
Mesh -> 7,
PlotStyle -> Directive[Specularity[White, 50], Opacity[0.8]]]
Cos
,ArcTan
etc. is assumed to be in radians, multiply byDegree
to convert from degrees. $\endgroup$PolarPlot[]
states "Use ContourPlot and RegionPlot for implicit curves and regions:" $\endgroup$