Plotting
This module provides live plotting routines for simulations
Plotting.jl
Jems.Plotting.end_of_evolution
— Methodend_of_evolution(sm::StellarModel)
Perform end of evolution actions
Jems.Plotting.update_plotting!
— Methodupdate_plots!(sm::StellarModel)
Updates all plots currently being displayed, by collecting appropriate data and notifying observables
Init.jl
Jems.Plotting.init_figure!
— Methodinit_figure!(m<:AbstractModel)
Initializes the plotting figure and adds axes
Jems.Plotting.init_plots!
— Methodinit_plots(sm::StellarModel)
Sets up all observables to be traced this run, and creates the figure and axis where they will be plotted, executes after the first model is found
History.jl
Jems.Plotting.create_history_observables!
— Methodcreate_history_observables!(sm::StellarModel, plot::StellarModels.JemsPlot)
creates the x and y observables and adds them to the observable list of the given plot
Jems.Plotting.make_history_plot!
— Methodinit_HR_plot!(ax::Axis, xval::Observable, yval::Observable; line_kwargs=Dict())
Sets up the plot elements for an history plot
Jems.Plotting.update_history_plot!
— Methodfunction update_history_plot!(plot::StellarModels.JemsPlot, m::AbstractModel)
Updates the given plot
with relevant history data from the model m
.
HRD.jl
Jems.Plotting.create_HR_observables!
— Methodcreate_HR_observables!(sm::StellarModel, plot::StellarModels.JemsPlot)
Creates teff and L observables and adds them to the observable list of the given plot
Jems.Plotting.make_HR_plot!
— Methodinit_HR_plot!(ax::Axis, Teff::Observable, L::Observable, Teff_now::Observable, L_now::Observable;
line_kwargs=Dict(), scatter_kwargs=Dict())
Sets up the plot elements for an HRD
Jems.Plotting.update_HR_plot!
— Methodfunction update_HR_plot!(plot::StellarModels.JemsPlot, sm::StellarModel)
Updates the given plot
with the relevant HR data from the properties of the stellar model props
.
TRhoProfile.jl
Jems.Plotting.create_T_ρ_observables!
— Methodfunction create_T_ρ_observables!(plot::StellarModels.JemsPlot, props::StellarModelProperties)
Creates relevant Tρ observables for this plot
given the StellarModelProperties props
Jems.Plotting.make_T_ρ_plot!
— Functionfunction make_T_ρ_plot!(ax::Axis, ρ::Observable, T::Observable; line_kwargs=Dict())
Plots a line for the Tρ profile, along with burning lines, degeneracy line and Pgas ≈ Prad line.
Jems.Plotting.update_T_ρ_plot!
— Methodfunction update_T_ρ_plot!(plot::StellarModels.JemsPlot, props::StellarModelProperties)
updates the observables of this Tρ plot
with relevant data of the stellar model properties props
.
Profile.jl
Jems.Plotting.create_profile_observables!
— Methodfunction create_profile_observables!(plot::StellarModels.JemsPlot, xvals::Dict, yvals::Dict;
alt_yvals::Dict=nothing)
Creates relevant profile observables for this plot
given xvals
, yvals
and optionally alt_yvals
for the right hand axis.
Jems.Plotting.make_profile_plot!
— Methodfunction make_profile_plot!(ax::Axis, xvals::Observable, yvals::Dict{Symbol,Observable};
xlabel::AbstractString="", ylabels::Dict{Symbol,<:AbstractString}=Dict(),
alt_ax::Axis=nothing, alt_yvals::Dict{Symbol,Observable}=nothing,
alt_ylabels::Dict{Symbol,<:AbstractString}=nothing,
line_kwargs=Dict())
Plots a line for each entry in the yvals
dict, and puts the given ylabels
in a legend. The alt_ax
is optional for the right hand side axis.
Jems.Plotting.update_profile_plot!
— Methodupdate_profile_plot!(plot::StellarModels.JemsPlot, sm::StellarModel)
updates the observables of this plot
with relevant data of the stellar model sm
.