API
Data Visualization
Visualisations.plot_phase_space — Functionplot_phase_space(
ed::ExperimentData,
var_type::Symbol;
label,
color,
resolution,
kwargs...
) -> Tuple{Makie.Figure, Vector}
Plot phase space of var_type for all trajectories in ed. var_type can be :states, :observables or :controls.
Arguments
ed::ExperimentData: ExperimentData objectvar_type::Symbol::states,:observablesor:controlscolor::Tuple: color of the lines. Default is(:orange, 0.1)where0.1is the alpha value.resolution::Tuple: resolution of the figure. Default isnothingwhich means(length(labels)-1).*(1000, 1000)wherelabelsis the labels of thevar_type.kwargs...: keyword arguments passed toAxisconstructor
Returns
fig::Figure: Makie figure objectaxs::Vector{Axis}: vector of Makie axis objects
plot_phase_space(
Xs::AbstractVector{<:AbstractMatrix};
...
) -> Tuple{Makie.Figure, Vector}
plot_phase_space(
Xs::AbstractVector{<:AbstractMatrix},
labels;
title,
resolution,
color,
label,
fontsize,
kwargs...
) -> Tuple{Makie.Figure, Vector}
Arguments
Xs::AbstractVector{<:AbstractMatrix}: vector of matrices of size(m, n)wheremis the number of dimensions andnis the number of timepoints.labels::Vector: list of labels of the dimensions of lengthm.color::Tuple: color of the lines. Default is(:orange, 0.1)where0.1is the alpha value.label: label for the legendresolution::Tuple: resolution of the figure. Default isnothingwhich means(ndims-1).*(1000, 1000)wherendimsis the number of dimensions.kwargs...: keyword arguments passed toAxisconstructor
Visualisations.plot_phase_space! — Functionplot_phase_space!(
fig::Makie.Figure,
axs::AbstractVector{<:Makie.Axis},
ed::ExperimentData,
var_type::Symbol;
color,
label,
kwargs...
) -> Tuple{Makie.Figure, AbstractVector{<:Makie.Axis}}
Plot phase space of var_type for all trajectories in ed. var_type can be :states, :observables or :controls.
Arguments
fig::Figure: Makie figure objectaxs::Vector{Axis}: vector of Makie axis objectsed::ExperimentData: ExperimentData objectvar_type::Symbol::states,:observablesor:controlscolor::Tuple: color of the lines. Default is(:orange, 0.1)where0.1is the alpha value.kwargs...: keyword arguments passed toAxisconstructor
Returns
fig::Figure: Makie figure objectaxs::Vector{Axis}: vector of Makie axis objects
plot_phase_space!(
fig::Makie.Figure,
axs::AbstractVector{<:Makie.Axis},
Xs::AbstractVector{<:AbstractMatrix};
color,
label,
labelsize,
kwargs...
) -> Tuple{Makie.Figure, AbstractVector{<:Makie.Axis}}
Arguments
fig::Figure: Makie figure objectaxs::Vector{Axis}: vector of Makie axis objectsXs::AbstractVector{<:AbstractMatrix}: vector of matrices of size(m, n)wheremis the number of dimensions andnis the number of timepoints.color::Tuple: color of the lines. Default is(:orange, 0.1)where0.1is the alpha value.label: label for the legendkwargs...: keyword arguments passed toAxisconstructor
Visualisations.plot_traces — Functionplot_traces(
ed::ExperimentData,
idx;
var_type,
color,
resolution,
kwargs...
) -> Makie.Figure
Plot traces of var_type for trajectory idx in ed. var_type can be :states, :observables or :controls.
Arguments
ed::ExperimentData: ExperimentData objectidx::Int: index of the trajectoryvar_type::Symbol::states,:observablesor:controlscolor::Tuple: color of the lines. Default is(:black, 1)where1is the alpha value.resolution::Tuple: resolution of the figure. Default isnothingwhich means(1000, length(labels)*200)wherelabelsis the labels of thevar_type.kwargs...: keyword arguments passed toAxisconstructor
Returns
fig::Figure: Makie figure object
plot_traces(
ts::AbstractVector,
gt::AbstractMatrix,
pred::AbstractMatrix,
labels::AbstractVector;
resolution,
gt_color,
pred_color,
kwargs...
) -> Makie.Figure
Plot traces of gt and pred of m dimensions and n timepoints against time ts with labels.
Arguments
ts::Vector: time vector of lengthn,gt::Matrix: ground truth matrix of size(m, n),pred::Matrix: prediction matrix of size(m, n),labels::Vector: labels for the traces of lengthm,resolution::Tuple: resolution of the figure. Default isnothingwhich means(1000, length(labels)*200).kwargs...: keyword arguments passed toAxisconstructor
Returns
fig::Figure: Makie figure object
Data Generation Tuning
Visualisations.datagen_tuning_app — Methoddatagen_tuning_app(; kwargs...)
Starts the DataGeneration tuning app.
Arguments
kwargs: Optional keyword arugments forPlutoVSCodeApp.create_appfunction call