# Problems to plot in polar coordinates using Layout

**URL:** <https://discourse.julialang.org/t/problems-to-plot-in-polar-coordinates-using-layout/55146>\
**Category:** New to Julia\
**Created:** [February 12, 2021, 1:05pm UTC](https://discourse.julialang.org/t/problems-to-plot-in-polar-coordinates-using-layout/55146 "2021-02-12T13:05:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Post date:** [February 12, 2021, 1:05pm UTC](https://discourse.julialang.org/t/problems-to-plot-in-polar-coordinates-using-layout/55146/1 "2021-02-12T13:05:21Z")

</div>

Hello users,  
I am with a little problem to plot in polar coordinates using a 3x3 layout.  
Below my code:

```julia
using Plots
plotly()
theta = 0:2*pi/1000:2*pi+2*pi/1000
g = plot(proj=:polar;leg=false,layout=(3,3),size=(800,800))
n=[2,3,4,5,6,7,8,9,10];
p=1
for i=1:3, j=1:3
     r=(cos.(n[p]*theta))
    plot!(g[p],theta,r,proj=:polar,legend=false,linewidth = 4,color=:red)
    p=p+1
end
g

```

However, my output is the following, veru strange.

 ![plots](https://global.discourse-cdn.com/julialang/original/3X/1/4/1411d6dfc57e0c853dcb21feb76e8ee114f35560.png)

My intention is on each subplot I have a different polar curve. In cartesian coordinates, my code works perfectly.

How can I fix this?
