This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
Support plotting objects orbiting around different attractors #204
Comments
Can you upload a minimal version of the code as well? |
I'm sorry, here it is 😄 : from poliastro.neos import neows
from poliastro.plotting import OrbitPlotter
# Attractor: Earth
from poliastro.examples import iss
#Attractor: Sun
eros = neows.orbit_from_name('eros')
frame = OrbitPlotter()
frame.plot(iss, label='iss')
frame.plot(eros, label='eros') |
Well, actually the first plot is previous to #199 fix. Currently the problem is still the same, altough: |
astrojuanlu
added
the
status:blocked
Some other change is needed before working on this (see discussion)
label
Sep 8, 2017
Won't arrive in time for November, postponing. |
Is there any reason this should be blocked now? |
Thanks @shreyasbapat, this is not blocked anymore. |
astrojuanlu
removed
the
status:blocked
Some other change is needed before working on this (see discussion)
label
Mar 17, 2019
Modern way to reproduce this: from poliastro.twobody import Orbit
from poliastro.plotting.static import StaticOrbitPlotter
# Attractor: Earth
from poliastro.examples import iss
# Attractor: Sun
eros = Orbit.from_sbdb("eros")
frame = StaticOrbitPlotter()
frame.plot(iss, label="iss")
frame.plot(eros, label="eros") |
astrojuanlu
changed the title
Problem when plotting two attractors
Support plotting objects orbiting around different attractors
Feb 27, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When there are two (or more) different attractors in a plot, all of them are located in
(0, 0)
, what leads to:The text was updated successfully, but these errors were encountered: