plotting
-
cosmic.plotting.
evolve_and_plot
(initC, t_min=None, t_max=None, BSEDict=None, sys_obs={})¶ Evolve and plot binaries as a function of time
- Parameters
initC : pandas.DataFrame
initial conditions for binary to evolve
t_min : float or list
starting time for plot in Myr
t_max : float or list
ending time for plot in Myr
BSEDict : `Dict
Dictionary containing all BSE flags needed
sys_obs : Dict
Dictionary containing keys for binary parameters with values to plot as vertical lines for each stellar component
- Returns
all_figs : list
list of all figures created
-
cosmic.plotting.
evolve_binary
(initC, t_min=None, t_max=None, BSEDict={})¶ Evolves a single binary with all timesteps written to the bcm array for plotting
- Parameters
initC : pandas.DataFrame
initial conditions for binary to evolve
t_min : float
starting time for plot in Myr
t_max : float
ending time for plot in Myr
BSEDict : `Dict
Dictionary containing all BSE flags needed
- Returns
bcm : pandas.DataFrame
binary evolution data form BSE’s bcm dict
-
cosmic.plotting.
plot_HR_diagram
(ax, L1_out, L2_out, Teff1_out, Teff2_out)¶ Plots the eccentricity as a function of time
- Parameters
ax : matplotlib.Axes
Axis instance for the plot
times : pandas.Series
Series of times at each binary evolution time step in Myr
L1_out : pandas.Series
Series of primary luminosities at each binary evolution time step in Lsun
L2_out : pandas.Series
Series of secondary luminosities at each binary evolution time step in Lsun
Teff1_out : pandas.Series
Series of primary effective temperature at each binary evolution time step in K
Teff2_out : pandas.Series
Series of secondary effective temperature at each binary evolution time step in K
sys_obs : Dict
Dictionary containing keys for binary parameters with values to plot as vertical lines for each stellar component
- Returns
- Null
-
cosmic.plotting.
plot_Mdot
(ax, times, Mdot1_out, Mdot2_out, legend=True)¶ Plots the stellar effectvie temperature as a function of time
- Parameters
ax : matplotlib.Axes
Axis instance for the plot
times : pandas.Series
Series of times at each binary evolution time step in Myr
Mdot1_out : pandas.Series
Series of primary mass transfer rate at each binary evolution time step in Msun/yr
Mdot2_out : pandas.Series
Series of secondary mass transfer rate at each binary evolution time step in Msun/yr
sys_obs : Dict
Dictionary containing keys for binary parameters with values to plot as vertical lines for each stellar component
- Returns
- Null
-
cosmic.plotting.
plot_P_orb
(ax, times, P_orb_out, t_max, sys_obs)¶ Plots the orbital period as a function of time
- Parameters
ax : matplotlib.Axes
Axis instance for the plot
times : pandas.Series
Series of times at each binary evolution time step in Myr
P_orb_out : pandas.Series
Series of orbital periods at each binary evolution time step in days
t_max : float
ending time for plot in Myr
sys_obs : Dict
Dictionary containing keys for binary parameters with values to plot as vertical lines for each stellar component
- Returns
- Null
-
cosmic.plotting.
plot_Teff
(ax, times, Teff1_out, Teff2_out, sys_obs)¶ Plots the stellar effectvie temperature as a function of time
- Parameters
ax : matplotlib.Axes
Axis instance for the plot
times : pandas.Series
Series of times at each binary evolution time step in Myr
Teff1_out : pandas.Series
Series of primary effective temperature at each binary evolution time step in K
Teff2_out : pandas.Series
Series of secondary effective temperature at each binary evolution time step in K
sys_obs : Dict
Dictionary containing keys for binary parameters with values to plot as vertical lines for each stellar component
- Returns
- Null
-
cosmic.plotting.
plot_binary_evol
(bcm, sys_obs={})¶ Plots the full set of plots and kstar bar plots
- Parameters
bcm : pandas.DataFrame
binary evolution data form BSE’s bcm dict
sys_obs : Dict
Dictionary containing keys for binary parameters with values to plot as vertical lines for each stellar component
- Returns
fig : matplotlib.figure
Figure containing all the plots!
-
cosmic.plotting.
plot_ecc
(ax, times, ecc_out, t_max, sys_obs)¶ Plots the eccentricity as a function of time
- Parameters
ax : matplotlib.Axes
Axis instance for the plot
times : pandas.Series
Series of times at each binary evolution time step in Myr
ecc_out : pandas.Series
Series of eccentricities at each binary evolution time step
t_max : float
ending time for plot in Myr
sys_obs : Dict
Dictionary containing keys for binary parameters with values to plot as vertical lines for each stellar component
- Returns
- Null
-
cosmic.plotting.
plot_k_type
(ax_1, ax_2, ax_k_type_list, times, k1_out, k2_out)¶ Plots the stellar types as a function of time
- Parameters
ax_1 : matplotlib.Axes
Axis instance for kstar 1
ax_2 : matplotlib.Axes
Axis instance for kstar 2
ax_k_type_list : list
List of ktypes for the legend of the ktype bar plots
times : pandas.Series
Series of times at each binary evolution time step in Myr
k1_out : pandas.Series
Series of kstar 1 type at each binary evolution time step in Myr
k2_out : pandas.Series
Series of kstar 2 type at each binary evolution time step in Myr
- Returns
- Null
-
cosmic.plotting.
plot_mass
(ax, times, M1_out, M2_out, sys_obs)¶ Plots the stellar mass as a function of time
- Parameters
ax : matplotlib.Axes
Axis instance for the plot
times : pandas.Series
Series of times at each binary evolution time step in Myr
M1_out : pandas.Series
Series of primary mass at each binary evolution time step in Msun
M2_out : pandas.Series
Series of secondary mass at each binary evolution time step in Msun
sys_obs : Dict
Dictionary containing keys for binary parameters with values to plot as vertical lines for each stellar component
- Returns
- Null
-
cosmic.plotting.
plot_radius
(ax, times, R1_out, R2_out, M1_out, M2_out, P_orb_out, ecc_out, sys_obs, legend=True)¶ Plots the stellar radii as a function of time
- Parameters
ax : matplotlib.Axes
Axis instance for the plot
times : pandas.Series
Series of times at each binary evolution time step in Myr
R1_out : pandas.Series
Series of primary radius at each binary evolution time step in Rsun
R2_out : pandas.Series
Series of secondary radius at each binary evolution time step in Rsun
M1_out : pandas.Series
Series of primary mass at each binary evolution time step in Msun
M2_out : pandas.Series
Series of secondary mass at each binary evolution time step in Msun
P_orb_out : pandas.Series
Series of orbital periods at each binary evolution time step in days
ecc_out : pandas.Series
Series of eccentricities at each binary evolution time step
sys_obs : Dict
Dictionary containing keys for binary parameters with values to plot as vertical lines for each stellar component
- Returns
- Null