Minor changes.

This commit is contained in:
Milo Jamali 2023-09-03 17:16:46 +03:30
parent 9d01d1a508
commit f1b7a128ad
1 changed files with 15 additions and 28 deletions

View File

@ -87,15 +87,21 @@ end
# ╔═╡ 0b8a7446-0110-49c4-aa5e-70f3513aff5b
@bind frm Slider(1:100:n_steps)
# ╔═╡ 5e09cedd-9f0b-44b6-8002-d187ce6106a9
# ╔═╡ b6e63da8-256f-4066-a87d-23df4be667a0
# ╠═╡ show_logs = false
# ╠═╡ skip_as_script = true
#=
begin
cgrd = cgrad(:grays)
heatmap(IM[frm], color=cgrd, legend=false, cbar=false, aspect_ratio=1, axis=false)
title!("Ising Model with β = at step $(frm-1)")
# Plot
IMAnim = @animate for f = 2:100:n_steps
cgrd = cgrad(:grays)
heatmap(IM[f], color=cgrd, legend=false, cbar=false, aspect_ratio=1, axis=false)
title!("Ising Model with β = at step $(f-2)")
end
gif(IMAnim, "IMAnim.gif", fps = 10)
end
# ╔═╡ 861b8216-4dc0-4818-af2d-f60d4401cc2f
IM
╠═╡ =#
# ╔═╡ 9b6b25b8-48e2-11ee-1d20-afe1dfca63ed
function metropolis(p, q, x₀, n)
@ -116,23 +122,6 @@ function metropolis(p, q, x₀, n)
return samples
end
# ╔═╡ b6e63da8-256f-4066-a87d-23df4be667a0
# ╠═╡ show_logs = false
# ╠═╡ skip_as_script = true
#=
begin
# Plot
# IMVf1 = heatmap(lattice)
IMAnim = @animate for f = 2:100:n_steps
cgrd = cgrad(:grays)
heatmap(IM[f], color=cgrd, legend=false, cbar=false, aspect_ratio=1, axis=false)
title!("Ising Model with β = at step $(f-2)")
end
gif(IMAnim, "IMAnim.gif", fps = 10)
end
╠═╡ =#
# ╔═╡ 00000000-0000-0000-0000-000000000001
PLUTO_PROJECT_TOML_CONTENTS = """
[deps]
@ -1258,10 +1247,8 @@ version = "1.4.1+0"
# ╟─9e577bd6-7fda-470d-919c-365bd3852c60
# ╠═1e5183ac-be19-42bf-8547-bf4f8cf9dd85
# ╟─0b8a7446-0110-49c4-aa5e-70f3513aff5b
# ╠═5e09cedd-9f0b-44b6-8002-d187ce6106a9
# ╠═861b8216-4dc0-4818-af2d-f60d4401cc2f
# ╠═ff61256c-e475-488c-92cc-92b9ee35b297
# ╟─9b6b25b8-48e2-11ee-1d20-afe1dfca63ed
# ╠═b6e63da8-256f-4066-a87d-23df4be667a0
# ╟─ff61256c-e475-488c-92cc-92b9ee35b297
# ╟─9b6b25b8-48e2-11ee-1d20-afe1dfca63ed
# ╟─00000000-0000-0000-0000-000000000001
# ╟─00000000-0000-0000-0000-000000000002