2020# [documentation](https://MikaelSlevinsky.github.io/FastTransforms).
2121
2222using FastTransforms, LinearAlgebra, Plots
23+ const GENFIGS = joinpath (dirname (dirname (pathof (FastTransforms))), " docs/src/generated" )
24+ ! isdir (GENFIGS) && mkdir (GENFIGS)
2325plotlyjs ()
2426
2527# Our function $f$ on the disk:
@@ -41,8 +43,12 @@ F = [f(r*cospi(θ), r*sinpi(θ)) for r in r, θ in θ]
4143# We superpose a surface plot of $f$ on top of the grid:
4244X = [r* cospi (θ) for r in r, θ in θ]
4345Y = [r* sinpi (θ) for r in r, θ in θ]
44- scatter3d (vec (X), vec (Y), vec (0 F); markersize= 0.75 , markercolor= :red , size= (1000 , 1000 ))
46+ scatter3d (vec (X), vec (Y), vec (0 F); markersize= 0.75 , markercolor= :red , size= (800 , 600 ))
4547surface! (X, Y, F; legend= false , xlabel= " x" , ylabel= " y" , zlabel= " f" )
48+ savefig (joinpath (GENFIGS, " zernike.html" ))
49+ # ##```@raw html
50+ # ##<object type="text/html" data="../zernike.html" style="width:100%;height:600px;"></object>
51+ # ##```
4652
4753# We precompute a (generalized) Zernike--Chebyshev×Fourier plan:
4854α, β = 0 , 0
@@ -95,8 +101,12 @@ F = [f(x[n], w[n]*z) for n in 1:N, z in z]
95101# We superpose a surface plot of $f$ on top of the grid:
96102X = [x for x in x, z in z]
97103Y = [w* z for w in w, z in z]
98- scatter3d (vec (X), vec (Y), vec (0 F); markersize= 0.75 , markercolor= :green , size= (1000 , 1000 ))
104+ scatter3d (vec (X), vec (Y), vec (0 F); markersize= 0.75 , markercolor= :green , size= (800 , 600 ))
99105surface! (X, Y, F; legend= false , xlabel= " x" , ylabel= " y" , zlabel= " f" )
106+ savefig (joinpath (GENFIGS, " dunklxu.html" ))
107+ # ##```@raw html
108+ # ##<object type="text/html" data="../dunklxu.html" style="width:100%;height:600px;"></object>
109+ # ##```
100110
101111# We precompute a Dunkl-Xu--Chebyshev plan:
102112P = plan_rectdisk2cheb (F, β)
0 commit comments