Skip to content

Commit

Permalink
add docstrings in examples/Makie.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelforget committed Aug 27, 2021
1 parent dd4a706 commit 1e94fb9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/Makie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

using GLMakie

"""
plot_as_sphere(Γ)
Plot mesh (Γ.XC,Γ.YC) and depth (Γ.Depth) on the surface of the sphere in 3D.
"""
function plot_as_sphere(Γ)
yy=pi/2 .-Γ.YC*pi/180
x=sin.(yy)*cos.(Γ.XC*pi/180)
Expand All @@ -35,6 +40,11 @@ function plot_as_sphere(Γ)
fig
end

"""
plot_as_plane(Γ)
Plot mesh (Γ.XC,Γ.YC) and depth (Γ.Depth) pn a 2D plane.
"""
function plot_as_plane(Γ)
x=Float64.(Γ.XC)
y=Float64.(Γ.YC)
Expand Down

0 comments on commit 1e94fb9

Please sign in to comment.