From 9c4f9958b0509c74e23e0c87c537e6e70f2669c2 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Tue, 7 May 2024 21:22:58 -0400 Subject: barrier on graph fix --- hw8/10-17-new.jl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw8/10-17-new.jl') diff --git a/hw8/10-17-new.jl b/hw8/10-17-new.jl index 1353618..a655553 100644 --- a/hw8/10-17-new.jl +++ b/hw8/10-17-new.jl @@ -68,6 +68,8 @@ anim = @animate for t in 0:dt:0.25 plot!(x[2:end-1], real(tmp), xlabel = "x", label = "real") # plot the imaginary plot!(x[2:end-1], imag(tmp), xlabel = "x", label = "imag") + endpoint_1 = 0.0 + endpoint_2 = barrier_width plot!([endpoint_1, endpoint_1], [0, 2], label = "", line = :dash, color = :red) plot!([endpoint_2, endpoint_2], [0, 2], label = "barrier (width = $barrier_width)", line = :dash, color = :red) end -- cgit v1.2.3-70-g09d2