# How to plot heatmap and contour plots in polar coordinates with Plots.jl?

**URL:** <https://discourse.julialang.org/t/how-to-plot-heatmap-and-contour-plots-in-polar-coordinates-with-plots-jl/7817>\
**Category:** Visualization\
**Tags:** question, plotting\
**Created:** [December 17, 2017, 5:00pm UTC](https://discourse.julialang.org/t/how-to-plot-heatmap-and-contour-plots-in-polar-coordinates-with-plots-jl/7817 "2017-12-17T17:00:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mohamed82008](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohamed82008/32/18171_2.png) [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Post date:** [December 17, 2017, 6:13pm UTC](https://discourse.julialang.org/t/how-to-plot-heatmap-and-contour-plots-in-polar-coordinates-with-plots-jl/7817/2 "2017-12-17T18:13:55Z")

</div>

This works with `pyplot()` but almost no other backend:

```julia
pyplot()
r = linspace(0,10,11)
θ = linspace(0,360,361)
f(r,θ) = r^2
hm = heatmap(f.(r,θ'), aspect_ratio=:equal, proj=:polar, legend=false)

```

![image](https://global.discourse-cdn.com/julialang/original/3X/4/b/4bdfcfa0fc2b9053b069310dbed8ef742614fbb0.png)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-plot-heatmap-and-contour-plots-in-polar-coordinates-with-plots-jl/7817)._
