How to plot polar contourplot in julia

Plots.jl pyplot() backend works (see example here) but with some limitations and PyPlot.jl seems to work best (see github post here).

PyPlot example below:

using PyPlot
fig = plt.figure()
ax = fig.add_subplot(111, projection="polar")
ρ = LinRange(0., 7, 200)
θ = LinRange(0., 2π, 360)
funp(ρ,θ) =  sin(2ρ) * cos(θ)
pc = pcolormesh(θ, ρ, funp.(ρ,θ'))
cbar = plt.colorbar(pc)
cbar.set_label("Intensity")
ax[:grid](true)

3 Likes