Skip to content

Commit ed7748b

Browse files
committed
Modify plot
1 parent 21de19d commit ed7748b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/lit/mri/6-precon.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,11 @@ ppr = plot(
255255
widen = true,
256256
)
257257
plot!(ppr, 0:niter, out0,
258-
label = "Non-preconditioned, 0 init", color = :red, marker = :circle,
258+
label = "LS-CG ('non-preconditioned'), 0 init",
259+
color = :black, marker = :circle,
259260
);
260261
261-
# "Preconditioned" version
262+
# "Preconditioned" (aka "weighted") version
262263
precon = vec(repeat(dcf, Nϕ));
263264
264265
# gradient of fp(u) = 1/2 ‖ P^{1/2} (u - y) ‖²
@@ -267,15 +268,15 @@ curvfp = u -> precon # curvature of fp(u)
267268
268269
xlsp, out2 = ncg([A], [gradfp], [curvfp], x0; niter, fun)
269270
plot!(ppr, 0:niter, out2,
270-
label = "DCF preconditioned, 0 init", color = :blue, marker = :x,
271+
label = "WLS-CG with DCF weighting, 0 init", color = :red, marker = :x,
271272
)
272273
#src savefig(ppr, "precon0.pdf")
273274
274275
# Smart start with gridded image
275276
x0 = gridded4 # initial guess: decent gridding reconstruction
276277
xls1, out1 = ncg([A], [gradf], [curvf], x0; niter, fun)
277278
plot!(ppr, 0:niter, out1,
278-
label = "Non-preconditioned, gridding init", color=:green, marker=:+,
279+
label = "LS-CG, gridding init", color=:blue, marker=:+,
279280
)
280281
281282
#src savefig(ppr, "precon1.pdf")

0 commit comments

Comments
 (0)