Orbit Plotting Functions
Function to make the individual plots that make up the .gif animation.
- orbitplot.get_star_color(bp_rp)
Sets color of star for plots
Defines the color of the star when passed data queried from Exoplanet Archive given BP/RP from Gaia DR2.
- Parameters:
bp_rp (float) – Color value pulled from Gaia DR2 with listed Exoplanet Archive Gaia_id using BP/RP.
- Returns:
hexcode color string
- Return type:
str
- orbitplot.plot_orbit(planet_list: list, directory: str, name: str, num: int, figsize: tuple, title=False, dpi=200, star_color='orange')
Plots planetary system
Plots the plantary system orbits given a list of planets to be saved as a GIF.
- Parameters:
planetary_list (list) – List of Planet objects representing the planets in the system.
directory (str) – Path to the directory in which to save plots.
name (str) – Name of plot files.
num (int) – Number representing order of plot in .gif animation frames. Follows <name>_<num>.jpg convention.
figsize (tuple, optional) – Plot figure size in units of inches formatted as (width, height). Default is (8, 8)
title (bool, optional) – Binary determiner for plot title to be included in each plot. Default is False.
dpi (int, optional) – Dots per inch to use when saving the plot. If kernel is crashing, try reducing the DPI. Default is 200
star_color (str, optional) – matplotlib color to use for the star. Default is ‘orange’.