ssapy_toolkit.Plots.orbit_plot_xy

ssapy_toolkit.Plots.orbit_plot_xy(r, t=None, title='', figsize=(7, 7), save_path=False, frame='gcrf', show=False, c='black', pad=1)[source]

Plots the trajectory of an orbiting body in different reference frames.

The function generates four subplots: 1. XY plane projection 2. XZ plane projection 3. YZ plane projection 4. 3D representation of the orbit

Parameters:

rnumpy array or list of numpy arrays

Position vector(s) of the orbiting object(s). If a single numpy array, it should have shape (N, 3) representing [x, y, z] positions. If a list of numpy arrays, each element should have shape (Ni, 3) for multiple trajectories.

tnumpy array, list, or None, optional

Time array corresponding to r. If r is a list of arrays, t should be a list of corresponding time arrays.

titlestr, optional

Title of the plot.

figsizetuple, optional

Figure size in inches. Default is (7, 7).

save_pathstr or bool, optional

Path to save the figure. If False, the plot is not saved.

framestr, optional

Reference frame for the plot. Options: - “gcrf” (Geocentric Celestial Reference Frame) - “itrf” (International Terrestrial Reference Frame) - “lunar” (Lunar-centered frame) - “lunar axis” (Moon on x-axis frame)

showbool, optional

If True, displays the plot.

Returns:

None

Author:

Travis Yeager (yeager7@llnl.gov)