Skip to content

Commit

Permalink
Update varioplot.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Oct 29, 2024
1 parent 56af45e commit 24497d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
12 changes: 0 additions & 12 deletions ext/varioplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ function Makie.plot!(plot::VarioPlot{<:Tuple{EmpiricalVarioplane}})
# retrieve varioplane object
v = plot[]

# retrieve range model
showrange = plot[:showrange]
rangemodel = plot[:rangemodel]

# underyling variograms
γs = Makie.@lift $v.γs

Expand Down Expand Up @@ -108,14 +104,6 @@ function Makie.plot!(plot::VarioPlot{<:Tuple{EmpiricalVarioplane}})
H = Makie.@lift transpose($H)

Makie.surface!(plot, θs, rs, H, colormap=plot[:colormap], shading=Makie.NoShading)

# show model range
if showrange[]
ls = Makie.@lift [ustrip(range(GeoStatsFunctions.fit($rangemodel, γ))) for γ in $γs]
ls = Makie.@lift [$ls; $ls]
hs = Makie.@lift fill(maximum($H) + 1, length($ls))
Makie.lines!(plot, θs, ls, hs, color=plot[:rangecolor])
end
end

# ------------
Expand Down
5 changes: 1 addition & 4 deletions src/plotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ Plot the variogram or varioplane `γ` with given `options`.
## Empirical varioplane options:
* `colormap` - color map of varioplane
* `showrange` - show varioplane range
* `rangecolor` - color of varioplane range
* `rangemodel` - range model (e.g. `SphericalVariogram`)
* `colormap` - color map of varioplane
### Notes
Expand Down

0 comments on commit 24497d2

Please sign in to comment.