-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGEF.jl
31 lines (24 loc) · 774 Bytes
/
GEF.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
include("artist.jl")
gaussian(n) = (randn(n) + rand(n) * 1im) / sqrt(2) #standard complex gaussian rv
function GEF(randcoefs, n)
coefs = randcoefs(n+1) ./ [sqrt(factorial(big(k))) for k in 0:n]
return f(z) = sum(coefs.*[z^k for k in 0:n])
end
n = 200 ; res = 500
f1 = GEF(gaussian, n)
b=8.
axisrange = range(-b, b, length=res)
dessin1 = paint_colorplot(f1,
bound=b,
res=res, mycm=ColorSchemes.cyclic_mygbm_30_95_c78_n256_s25.colors)
#common arguments for nice plots
plotarguments = Dict(
:xlims => (-b,b),
:ylims => (-b, b),
:yticks=> -b:0.5:b,
:xticks=> -b:0.5:b,
:tickfontfamily => "Computer Modern",
:legend => :none,
:border => :none)
p = plot(dpi=200)
plot!(p, axisrange, axisrange, dessin1 ; plotarguments...)