From c73cdf4810f15a425e880ecf2d117b73d702dff3 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk> Date: Mon, 26 Feb 2024 12:57:05 +0000 Subject: [PATCH] Fix final amplitude to be 0 --- src/plot.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plot.jl b/src/plot.jl index 00fec0f..13e06e7 100644 --- a/src/plot.jl +++ b/src/plot.jl @@ -28,7 +28,7 @@ function SinglePlotLine(control_points::AbstractVector{<:Tuple}, duration::Numbe end if times[end] < duration push!(times, duration) - push!(amplitudes, duration) + push!(amplitudes, 0.) end return SinglePlotLine(times, amplitudes, [], []) end -- GitLab