diff --git a/src/plotting.jl b/src/plotting.jl index 3be915d8..ac871cd3 100644 --- a/src/plotting.jl +++ b/src/plotting.jl @@ -1378,8 +1378,10 @@ function plot_conditional_forecast(𝓂::ℳ, var_idx = indexin(var_names,full_SS) - var_names[indexin(𝓂.aux,var_names)] = map(x -> Symbol(replace(string(x), r"ᴸ⁽⁻?[⁰¹²³⁴⁵⁶⁷⁸⁹]+⁾" => "")), 𝓂.aux) - + if length(intersect(𝓂.aux,var_names)) > 0 + var_names[indexin(𝓂.aux,var_names)] = map(x -> Symbol(replace(string(x), r"ᴸ⁽⁻?[⁰¹²³⁴⁵⁶⁷⁸⁹]+⁾" => "")), 𝓂.aux) + end + relevant_SS = get_steady_state(𝓂, algorithm = algorithm, return_variables_only = true, derivatives = false) relevant_SS = relevant_SS isa KeyedArray ? axiskeys(relevant_SS,1) isa Vector{String} ? rekey(relevant_SS, 1 => axiskeys(relevant_SS,1) .|> Meta.parse .|> replace_indices) : relevant_SS : relevant_SS