New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix attractor size when plotting different orbits #130
Comments
Related to #111. Postponing. |
I was about to open an issue when I saw this one. As title says, attractor size when plotting distant orbits seems too big. 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) to radius = orbit.attractor.R.to(u.km).value but I suppose that without that |
Yep, that's the problem. There is also another thing: https://github.com/poliastro/poliastro/blob/286e524/src/poliastro/plotting.py#L125 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? |
No description provided.
The text was updated successfully, but these errors were encountered: