Created
June 1, 2025 13:14
-
-
Save abikoushi/a43184f17807a4fc32104bd0e28ad49b to your computer and use it in GitHub Desktop.
practice CairoMakie.jl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Distributions | |
using CairoMakie | |
#https://docs.makie.org/stable/ | |
xv = 0:0.1:20 | |
f = Figure() | |
ax = Axis(f[1, 1]) | |
l1 = lines!(ax, xv, pdf.(Gumbel(0,1), xv)) | |
l2 = lines!(ax, xv, pdf.(Gumbel(1,1), xv), linestyle=:dash) | |
l3 = lines!(ax, xv, pdf.(Gumbel(0,2), xv), linestyle=:dot) | |
l4 = lines!(ax, xv, pdf.(Gumbel(2,3), xv), linestyle=:dashdot) | |
Legend(f[1, 2], [l1, l2, l3, l4], | |
["(μ=0, θ=1)", "(μ=1, θ=1)", "(μ=0, θ=2)","(μ=2, θ=3)"]) | |
f | |
save("Gumbel.png", f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment