Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix attractor size when plotting different orbits #130
I was about to open an issue when I saw this one.
It can be fixed changing line 126 in plotting.py from:
radius = max(orbit.attractor.R.to(u.km).value, orbit.r_p.to(u.km).value / 6)
radius = orbit.attractor.R.to(u.km).value
but I suppose that without that
Yep, that's the problem. There is also another thing:
The attractor is being plotted one time for each planet. We could always plot the "real" radius, and although it would be too small in most cases, it is the easiest way to fix a sensible value without ruining the plot. Perhaps we should plot the attractor only once in the first place?