diff options
author | Urbain Vaes <urbain@vaes.uk> | 2023-09-23 20:50:58 +0200 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2023-09-23 20:50:58 +0200 |
commit | b2762ae56d12f13daec44f5f8bd5f1f16e36dbbc (patch) | |
tree | 6781167a8216be9aee5b1996b0f321b1dc598044 /figures.jl | |
parent | 1f3bf1f786f98095a21cd6b615ddec99c2a014da (diff) |
Minor changes
Diffstat (limited to 'figures.jl')
-rw-r--r-- | figures.jl | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -2,16 +2,22 @@ using Plots using QuadGK using LaTeXStrings -V(x) = 1 - cos(x) +Plots.default(fontfamily="Computer Modern", + titlefontsize=20, + xtickfontsize=12, + ytickfontsize=12, + legendfontsize=12) + +V(x) = 1/2 * (1 - cos(x)) η = .1 -# plot(title="Invariant distribution of perturbed OL") +plot(title=L"Steady state $\rho_{\eta}$ with forcing") plot(title="") for η ∈ [0, .5, 1, 2] ρ(q) = exp(-V(q)) * quadgk(y -> exp(V(q + y) - η*y), 0, 2π)[1] Z = quadgk(ρ, - π, π)[1] plot!(q -> ρ(q) / Z, -π, π, label=L"\eta = " * string(η), lw=2) end -plot!(xlims = (-π, π), grid=false, ylims=(0, .4), framestyle=:box) +plot!(xlims = (-π, π), grid=false, framestyle=:box) savefig("figures/invariant_perturbed_ol.pdf") |