plotting
- cosmic.plotting.evolve_and_plot(initC, t_min=None, t_max=None, BSEDict=None, SSEDict=None, sys_obs={})[source]¶
Evolve and plot binaries as a function of time
- Parameters:
- initCpandas.DataFrame
initial conditions for binary to evolve
- t_minfloat or list
starting time for plot in Myr
- t_maxfloat or list
ending time for plot in Myr
- BSEDictDict
Dictionary containing all BSE flags needed
- SSEDictDict
Dictionary containing all SSE flags needed
- sys_obsDict
Dictionary containing keys for binary parameters with values to plot as vertical lines for each stellar component
- Returns:
- all_figslist
list of all figures created
- cosmic.plotting.evolve_binary(initC, t_min=None, t_max=None, BSEDict={}, SSEDict={})[source]¶
Evolves a single binary with all timesteps written to the bcm array for plotting
- Parameters:
- initCpandas.DataFrame
initial conditions for binary to evolve
- t_minfloat
starting time for plot in Myr
- t_maxfloat
ending time for plot in Myr
- BSEDictDict
Dictionary containing all BSE flags needed
- SSEDictDict
Dictionary containing all SSE flags needed
- Returns:
- bcmpandas.DataFrame
binary evolution data form BSE’s bcm dict
- cosmic.plotting.plot_HR_diagram(ax, L1_out, L2_out, Teff1_out, Teff2_out)[source]¶
Plots the eccentricity as a function of time
- Parameters:
- axmatplotlib.Axes
Axis instance for the plot
- timespandas.Series
Series of times at each binary evolution time step in Myr
- L1_outpandas.Series
Series of primary luminosities at each binary evolution time step in Lsun
- L2_outpandas.Series
Series of secondary luminosities at each binary evolution time step in Lsun
- Teff1_outpandas.Series
Series of primary effective temperature at each binary evolution time step in K
- Teff2_outpandas.Series
Series of secondary effective temperature at each binary evolution time step in K
- sys_obsDict
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)[source]¶
Plots the stellar effectvie temperature as a function of time
- Parameters:
- axmatplotlib.Axes
Axis instance for the plot
- timespandas.Series
Series of times at each binary evolution time step in Myr
- Mdot1_outpandas.Series
Series of primary mass transfer rate at each binary evolution time step in Msun/yr
- Mdot2_outpandas.Series
Series of secondary mass transfer rate at each binary evolution time step in Msun/yr
- sys_obsDict
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)[source]¶
Plots the orbital period as a function of time
- Parameters:
- axmatplotlib.Axes
Axis instance for the plot
- timespandas.Series
Series of times at each binary evolution time step in Myr
- P_orb_outpandas.Series
Series of orbital periods at each binary evolution time step in days
- t_maxfloat
ending time for plot in Myr
- sys_obsDict
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)[source]¶
Plots the stellar effectvie temperature as a function of time
- Parameters:
- axmatplotlib.Axes
Axis instance for the plot
- timespandas.Series
Series of times at each binary evolution time step in Myr
- Teff1_outpandas.Series
Series of primary effective temperature at each binary evolution time step in K
- Teff2_outpandas.Series
Series of secondary effective temperature at each binary evolution time step in K
- sys_obsDict
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={}, ktype_kwargs={}, t_min=None, t_max=None)[source]¶
Plots the full set of plots and kstar bar plots
- Parameters:
- bcmpandas.DataFrame
binary evolution data form BSE’s bcm dict
- sys_obsDict
Dictionary containing keys for binary parameters with values to plot as vertical lines for each stellar component
- Returns:
- figmatplotlib.figure
Figure containing all the plots!
- cosmic.plotting.plot_ecc(ax, times, ecc_out, t_max, sys_obs)[source]¶
Plots the eccentricity as a function of time
- Parameters:
- axmatplotlib.Axes
Axis instance for the plot
- timespandas.Series
Series of times at each binary evolution time step in Myr
- ecc_outpandas.Series
Series of eccentricities at each binary evolution time step
- t_maxfloat
ending time for plot in Myr
- sys_obsDict
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, k_type_colors=None, k_type_labels=None)[source]¶
Plots the stellar types as a function of time
- Parameters:
- ax_1matplotlib.Axes
Axis instance for kstar 1
- ax_2matplotlib.Axes
Axis instance for kstar 2
- ax_k_type_listlist
List of ktypes for the legend of the ktype bar plots
- timespandas.Series
Series of times at each binary evolution time step in Myr
- k1_outpandas.Series
Series of kstar 1 type at each binary evolution time step in Myr
- k2_outpandas.Series
Series of kstar 2 type at each binary evolution time step in Myr
- k_type_colorslist
List of colors for each ktype
- k_type_labelslist
List of labels for each ktype
- Returns:
- Null
- cosmic.plotting.plot_mass(ax, times, M1_out, M2_out, sys_obs)[source]¶
Plots the stellar mass as a function of time
- Parameters:
- axmatplotlib.Axes
Axis instance for the plot
- timespandas.Series
Series of times at each binary evolution time step in Myr
- M1_outpandas.Series
Series of primary mass at each binary evolution time step in Msun
- M2_outpandas.Series
Series of secondary mass at each binary evolution time step in Msun
- sys_obsDict
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)[source]¶
Plots the stellar radii as a function of time
- Parameters:
- axmatplotlib.Axes
Axis instance for the plot
- timespandas.Series
Series of times at each binary evolution time step in Myr
- R1_outpandas.Series
Series of primary radius at each binary evolution time step in Rsun
- R2_outpandas.Series
Series of secondary radius at each binary evolution time step in Rsun
- M1_outpandas.Series
Series of primary mass at each binary evolution time step in Msun
- M2_outpandas.Series
Series of secondary mass at each binary evolution time step in Msun
- P_orb_outpandas.Series
Series of orbital periods at each binary evolution time step in days
- ecc_outpandas.Series
Series of eccentricities at each binary evolution time step
- sys_obsDict
Dictionary containing keys for binary parameters with values to plot as vertical lines for each stellar component
- Returns:
- Null