ssapy.plotUtils
Utility functions for plotting.
Functions
|
Calculate the Keplerian orbital elements from position and velocity vectors. |
|
Checks if the input variable is a NumPy array, a list of NumPy arrays, or neither. |
|
Determines the type of the input and provides a description based on its structure. |
|
Draw a dashed circle on a 3D axis with a given normal vector. |
|
|
|
|
|
Find a file in the current directory or the ssapy datadir. |
|
Find the smallest bounding cube for a set of 3D coordinates, with optional padding. |
|
Format the x-axis of a plot with time-based labels depending on the span of the time array. |
|
Converts a position vector in the GCRF (Geocentric Celestial Reference Frame) to the ITRF (International Terrestrial Reference Frame) in Cartesian coordinates. |
|
Transform position and velocity vectors from the GCRF (Geocentric Celestial Reference Frame) to a lunar-centric frame. |
|
Transform position and velocity vectors from the GCRF (Geocentric Celestial Reference Frame) to a Moon-fixed (lunar-centric) frame. |
|
Get a Body object for a named body. |
|
Plot a 3D scatter plot of position vectors on a globe representation. |
|
Calculate satellite ground track on the outer product of all supplied times and state vectors or orbits. |
|
|
|
|
|
Create a 2D histogram plot for various Keplerian orbital elements of stable cislunar orbits. |
|
Plot Keplerian orbital elements over time for a given trajectory. |
|
Calculate the positions of the lunar Lagrange points in the lunar frame, This frame is defined by the coordinate transformation in utils.py gcrf_to_lunar(). |
Loads and resizes an image of the Earth. |
|
Loads and resizes an image of the Moon. |
|
|
Plot multiple cislunar orbits in the GCRF frame with respect to the Earth and Moon. |
|
Plots the trajectory of one or more orbits in various views and coordinate frames. |
|
Create a GIF from a sequence of image frames. |
|
Save a Python figure as a PNG/JPG/PDF/ect. |
|
Save a Matplotlib figure to a PDF file, with support for merging with existing PDFs. |
|
Create a 2D scatter plot with optional color mapping. |
|
Create a 3D scatter plot with optional color mapping. |
|
Generates a scaled array of colors using the rainbow colormap. |
|
Set the color theme of the figure and axes to white or black and the text color to white or black. |