Skip to content

[Bug] Plot vline at tf #311

Description

@ocots

CTModels.jl/ext/plot.jl

Lines 1027 to 1056 in 504ebc3

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions