aboutsummaryrefslogtreecommitdiff
path: root/hw8/10-17-new.jl
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2024-05-07 21:22:58 -0400
committersotech117 <michael_foiani@brown.edu>2024-05-07 21:22:58 -0400
commit9c4f9958b0509c74e23e0c87c537e6e70f2669c2 (patch)
treef0fc7bccc1f4f423f9bd0ed56de864dbea4527c4 /hw8/10-17-new.jl
parent6376bee4e22d7b6e9ebe575dc12bef748f578dcf (diff)
barrier on graph fixHEADmain
Diffstat (limited to 'hw8/10-17-new.jl')
-rw-r--r--hw8/10-17-new.jl2
1 files changed, 2 insertions, 0 deletions
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