Skip to content

Commit

Permalink
2024-09-02 update : adding vertical line for actual value.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbernalz committed Sep 2, 2024
1 parent 1cacb57 commit 4a6b6b7
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions src/non_time_varying_param_vis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ function non_time_varying_param_vis(
legend = :topright)
if !isnothing(actual_non_time_varying_vals)
actual_param_value = round(getfield(actual_non_time_varying_vals, Symbol(curr_param)), digits=3)
scatter!(plt, [actual_param_value], [0.002],
label = "Actual Value: $actual_param_value",
color = :red,
markersize = 5,
marker = :circle)
vline!(plt,
[actual_param_value],
label = "Actual Value: $actual_param_value",
color = :red,
linewidth = 3,
linestyle=:dash)
end

push!(non_time_varying_plots, plt)
Expand Down Expand Up @@ -183,11 +184,12 @@ function non_time_varying_param_vis(
legend = :topright)
if !isnothing(actual_non_time_varying_vals)
actual_param_value = round(getfield(actual_non_time_varying_vals, Symbol(curr_param)), digits=3)
scatter!(plt, [actual_param_value], [0.002],
label = "Actual Value: $actual_param_value",
color = :red,
markersize = 5,
marker = :circle)
vline!(plt,
[actual_param_value],
label = "Actual Value: $actual_param_value",
color = :red,
linewidth = 3,
linestyle=:dash)
end

push!(non_time_varying_plots, plt)
Expand Down Expand Up @@ -247,12 +249,12 @@ function non_time_varying_param_vis(;
legend = :topright)
if !isnothing(actual_non_time_varying_vals)
actual_param_value = round(getfield(actual_non_time_varying_vals, Symbol(curr_param)), digits=3)
scatter!(plt, Float64[actual_param_value], [0.002],
label = "Actual Value : $actual_param_value",
color = :red,
markersize = 5,
marker = :circle,
legendfont = font(8))
vline!(plt,
[actual_param_value],
label = "Actual Value: $actual_param_value",
color = :red,
linewidth = 3,
linestyle=:dash)
end
push!(non_time_varying_plots, plt)
end
Expand Down

0 comments on commit 4a6b6b7

Please sign in to comment.