示例#1
0
def plot_oscillatory_infall_model(axes, inset):
    """ 
	Plots the models in which the infall rate oscillates with time 

	Parameters 
	========== 
	axes :: list 
		The 1-D list of matplotlib axis objects to plot on 
	inset :: subplot 
		The matplotlib axis to plot the tracks inset on  
	"""
    visuals.plot_output_3axes(axes, "../../simulations/SFRoscil_amp0p3_per4",
                              "crimson", "O")
    visuals.plot_output_3axes(axes, "../../simulations/SFRoscil_amp0p6_per2",
                              "deepskyblue", "O")
    visuals.plot_output_3axes(axes, "../../simulations/SFRoscil_amp0p3_per2",
                              "black", "O")
    visuals.plot_track_points_intervals(
        axes[1], vice.history("../../simulations/SFRoscil_amp0p3_per2"))
    # visuals.plot_output_3axes(axes, "../../simulations/slow", "lime", "O")
    visuals.plot_inset(inset, "../../simulations/SFRoscil_amp0p3_per4",
                       "crimson")
    visuals.plot_inset(inset, "../../simulations/SFRoscil_amp0p6_per2",
                       "deepskyblue")
    visuals.plot_inset(inset, "../../simulations/SFRoscil_amp0p3_per2",
                       "black")
    visuals.plot_inset(inset,
                       "../../simulations/default",
                       "black",
                       linestyle=":")
    visuals.plot_track_points_intervals(
        inset, vice.history("../../simulations/SFRoscil_amp0p3_per2"))
    # visuals.plot_inset(inset, "../../simulations/slow", "lime")
    visuals.plot_reference(axes)
    visuals.sfr_ifr_legend(axes[0], ncol=2)
示例#2
0
def plot_gas_driven_models(axes):
	"""
	Plots the gas-driven starburst models in the top row of panels.

	Parameters
	==========
	axes :: list
		The 1-D list of matplotlib axes
	"""
	visuals.plot_output_3axes(axes, "../../simulations/sudden_2Gyr_5e9Msun",
		"crimson", "Sr")
	visuals.plot_output_3axes(axes, "../../simulations/sudden_5Gyr_5e9Msun",
		"deepskyblue", "Sr")
	visuals.plot_output_3axes(axes, "../../simulations/default", "black",
		"Sr", second_linestyle = ':')
	visuals.plot_track_points_intervals(axes[1],
		vice.history("../../simulations/default"), element = "Sr")
示例#3
0
def plot_gas_driven_prolonged_models(axes):
	"""
	Plots the 5-Gyr gas driven models with varying accretion timescales.

	Parameters
	==========
	axes :: list
		The 1-D list of matplotlib axes to plot on
	"""
	visuals.plot_output_3axes(axes,
		"../../simulations/prolonged_5Gyr_5e9Msun_0p5Gyr", "crimson", "O")
	visuals.plot_output_3axes(axes,
		"../../simulations/prolonged_5Gyr_5e9Msun_1p0Gyr", "deepskyblue", "O")
	visuals.plot_output_3axes(axes, "../../simulations/sudden_5Gyr_5e9Msun",
		"black", "O", second_linestyle = ':')
	visuals.plot_track_points_intervals(axes[1],
		vice.history("../../simulations/sudden_5Gyr_5e9Msun"))
示例#4
0
def plot_gas_driven_models(axes):
    """
	Plots the gas-driven starburst models on a set of axes

	Parameters
	==========
	axes :: list
		The 1-D list of matplotlib axis objects to plot on
	"""
    visuals.plot_output_3axes(axes,
                              "../../simulations/sudden_5Gyr_5e9Msun_ts0p5",
                              "crimson", "O")
    visuals.plot_output_3axes(axes,
                              "../../simulations/sudden_5Gyr_5e9Msun_ts1p0",
                              "deepskyblue", "O")
    visuals.plot_output_3axes(axes,
                              "../../simulations/sudden_5Gyr_5e9Msun",
                              "black",
                              "O",
                              second_linestyle=':')
    visuals.plot_track_points_intervals(
        axes[1], vice.history("../../simulations/sudden_5Gyr_5e9Msun"))