orbits

orbits

sorts.plotting.general.orbits(o, **options)[source]

This function creates several scatter plots of a set of orbital elements based on the different possible axis planar projections, calculates all possible permutations of plane intersections based on the number of columns

Parameters
  • o (numpy.ndarray) – Rows are distinct orbits and columns are orbital elements in the order a, e, i, omega, Omega

  • options – dictionary containing all the optional settings

#TODO: this needs updating

Currently the options fields are:
marker [char]

the marker type

size [int]

the size of the marker

title [string]

the title of the plot

title_font_size [int]

the title font size

axis_labels [list of strings]

labels for each column

tick_font_size [int]

the axis tick font size

window [tuple/list]

the size of the plot window in pixels (assuming dpi = 80)

save [string]

will not display figure and will instead save it to this path

show [bool]

if False will do draw() instead of show() allowing script to continue

tight_rect [list of 4 floats]

configuration for the tight_layout function

Example:

import dpt_tools as dpt
import numpy as np
np.random.seed(19680221)

orbs = np.matrix([
    11  + 3  *np.random.randn(1000),
    0.5 + 0.2*np.random.randn(1000),
    60  + 10 *np.random.randn(1000),
    120 + 5  *np.random.randn(1000),
    33  + 2  *np.random.randn(1000),
]).T

dpt.orbits(orbs,
    title = "My orbital element distribution",
    size = 10,
)