# Polar plot gets cropped

**URL:** <https://discourse.julialang.org/t/polar-plot-gets-cropped/52802>\
**Category:** General Usage\
**Tags:** jupyter, plotting\
**Created:** [January 3, 2021, 11:17pm UTC](https://discourse.julialang.org/t/polar-plot-gets-cropped/52802 "2021-01-03T23:17:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tofi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tofi/32/11919_2.png) [@Tofi](https://discourse.julialang.org/u/Tofi)\
**Post date:** [January 3, 2021, 11:17pm UTC](https://discourse.julialang.org/t/polar-plot-gets-cropped/52802/1 "2021-01-03T23:17:19Z")

</div>

Hello,

I’m trying to plot the trajectory of an object falling in a central gravitational potential well. The plot is obtained using the relation between `r` and `θ` by running the following code in the Jupyter notebook:

```julia
using Plots

ε = 1.0; k = 0.2
s(θ) = 1/k*(1+ε*cos(θ))
plot(θ -> 1/s(θ), 0, 2π, proj=:polar, lims=(0, 15))

```

When setting `ε = 1.0`, the trajectory has to be a parabola.

The problem is with the `lims` parameter of the `plot` function. When setting `lims=(0, 15)`, I get a good plot of a parabola. However, if I set the upper limit to a smaller value (`lims=(0, 10)` for example) in order to zoom-in on the part of the plot close to the origin, the parabola disappears and I only get two little dashes at the edge of the graph.

Any ideas on what is causing this problem and how mitigate it?  
Many thanks in advance!

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [January 4, 2021, 8:15am UTC](https://discourse.julialang.org/t/polar-plot-gets-cropped/52802/2 "2021-01-04T08:15:52Z")

</div>

Can’t reproduce, perhaps just a version problem:

```julia
julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: AMD Ryzen 9 3900X 12-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, znver2)

(@v1.5) pkg> st
Status `C:\Users\oheil\.julia\environments\v1.5\Project.toml`
  [91a5bcdd] Plots v1.9.1

```

![grafik](https://global.discourse-cdn.com/julialang/original/3X/b/6/b614bcc6e5b0955d2b5e45b71dc8dc1fb55d2fcc.png)

---

<div class="post-metadata">

**Author:** ![Tofi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tofi/32/11919_2.png) [@Tofi](https://discourse.julialang.org/u/Tofi)\
**Post date:** [January 4, 2021, 5:09pm UTC](https://discourse.julialang.org/t/polar-plot-gets-cropped/52802/3 "2021-01-04T17:09:48Z")

</div>

Thanks for the reply. Actually I just found out that it is a problem with Jupyter. Running the same code in the REPL gives the desired result with no issues.
