Polar plot gets cropped

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:

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!

Can’t reproduce, perhaps just a version problem:

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

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.