question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow hyperbolic orbits to stay within the bounds of a plot

See original GitHub issue

After #19 was fixed plotting only one hyperbolic orbit looks okay, but there can be cases when one wants it to do something like this:

new_horizons

This plot needed a patch in _generate_vals (hence tagging it as a bug), but it only works for cases where there’s a previous closed orbit plotted. The logic to handle both cases has to be more complex.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:22 (21 by maintainers)

github_iconTop GitHub Comments

2reactions
astrojuanlucommented, Mar 1, 2018

I stumbled upon this again while running the notebook I mentioned above. This is the code to reproduce with the current master:

ss_hyp = Orbit.from_vectors(
    Sun,
    [ -9.77441841e+07,  1.01000539e+08,  4.37584668e+07] * u.km,
    [ 23.75936985,-43.09599568, -8.7084724 ] * u.km / u.s,
)
ss_big = Orbit.from_vectors(
    Sun,
    [  4.62521605e+10,  1.55496163e+11, -4.18874038e+10] * u.km,
    [-0.46461615, 0.20385617, 0.24373322] * u.km / u.s
)

Plotting each of them separately works:

hyp big

(notice the slight bug in the hyperbolic one?)

However, plotting them together shows only the big, elliptic orbit (regardless of the order):

frame = OrbitPlotter()

frame.plot(ss_big)
frame.plot(ss_hyp)

together

Therefore, it’s not enough to compute the limit nu_values for hyperbolic orbits inside the sample method: the plotting code should set them, depending on the bounds of the plot or some other parameter. Still not sure how to fix this.

0reactions
astrojuanlucommented, Mar 15, 2019

Perhaps it’s not really something we can solve. Our current APIs allow you to clip the axis and change its limits, so perhaps that’s enough. I’m closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hyperbolic Orbit - an overview | ScienceDirect Topics
Typically, interstellar dust particles move on unbound, hyperbolic orbits through the solar system. Similarly, interplanetary particles are unbound to any ...
Read more >
Hyperbolic trajectory - Wikipedia
In astrodynamics or celestial mechanics, a hyperbolic trajectory or hyperbolic orbit is the trajectory of any object around a central body with more...
Read more >
AEE462 Lecture 5, Part A - Moving Hyperbolic Orbits in Time
We repeat Lecture 4 in the case of Hyperbolic Trajectories ( Orbits ). We define Hyperbolic anomaly, hyperbolic Mean Anomaly, and a hyperbolic...
Read more >
13.5 Kepler's Laws of Planetary Motion - Lumen Learning
Summary. All orbital motion follows the path of a conic section. Bound or closed orbits are either a circle or an ellipse; unbounded...
Read more >
Basics of Space Flight: Orbital Mechanics
These considerations apply equally well to the motion of a satellite about a planet. Let's examine the case of two bodies of masses...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found