|
if do_decorate_time |
|
if time == :normalize || time == :normalise |
|
t0 = 0.0 |
|
tf = 1.0 |
|
else |
|
t0 = if CTModels.has_fixed_initial_time(model) |
|
CTModels.initial_time(model) |
|
else |
|
CTModels.initial_time(model, CTModels.variable(sol)) |
|
end |
|
tf = if CTModels.has_fixed_final_time(model) |
|
CTModels.final_time(model) |
|
else |
|
CTModels.final_time(model, CTModels.variable(sol)) |
|
end |
|
end |
|
for plt in p.subplots |
|
vline!( |
|
plt, |
|
[t0, tf]; |
|
color=:black, |
|
linestyle=:dash, |
|
linewidth=1, |
|
z_order=:back, |
|
series_attr..., |
|
time_style..., |
|
label=:none, |
|
) |
|
end |
|
end |
Use time[end] instead of tf from the variable.
CTModels.jl/ext/plot.jl
Lines 1027 to 1056 in 504ebc3
Use
time[end]instead oftffrom the variable.