Plotting

This module provides live plotting routines for simulations

Plotting.jl

Init.jl

Jems.Plotting.init_plots!Method
init_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

source

History.jl

HRD.jl

Jems.Plotting.make_HR_plot!Method
init_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

source
Jems.Plotting.update_HR_plot!Method
function 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.

source

TRhoProfile.jl

Jems.Plotting.create_T_ρ_observables!Method
function create_T_ρ_observables!(plot::StellarModels.JemsPlot, props::StellarModelProperties)

Creates relevant Tρ observables for this plot given the StellarModelProperties props

source
Jems.Plotting.make_T_ρ_plot!Function
function 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.

source
Jems.Plotting.update_T_ρ_plot!Method
function update_T_ρ_plot!(plot::StellarModels.JemsPlot, props::StellarModelProperties)

updates the observables of this Tρ plot with relevant data of the stellar model properties props.

source

Profile.jl

Jems.Plotting.create_profile_observables!Method
function 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.

source
Jems.Plotting.make_profile_plot!Method
function 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.

source