Skip to content

Commit

Permalink
Using the helper function to calculate vmin,vmax instead of calculati…
Browse files Browse the repository at this point in the history
…ng directly
  • Loading branch information
firasalchalabi committed Jun 4, 2024
1 parent f53c097 commit c599176
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Recipes/SeisImageRecipe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,7 @@ function Makie.plot!(img::SeisImagePlot{<:Tuple{AbstractMatrix{<:Real}}})
y[] = (oy, oy + size(d,1)*dy)

if (isnothing(vmin) || isnothing(vmax))
if (img.pclip[]<=100)
a = -quantile(abs.(d[:]), (pclip/100))
else
a = -quantile(abs.(d[:]), 1)*pclip/100
end
b = -a
a, b = __calculate_pclip(d, pclip=pclip)
else
a = vmin
b = vmax
Expand Down

0 comments on commit c599176

Please sign in to comment.