From c5991764af9fb30f61db9c7713e38ff5e53399c2 Mon Sep 17 00:00:00 2001 From: Firas Date: Tue, 4 Jun 2024 14:18:12 -0600 Subject: [PATCH] Using the helper function to calculate vmin,vmax instead of calculating directly --- src/Recipes/SeisImageRecipe.jl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Recipes/SeisImageRecipe.jl b/src/Recipes/SeisImageRecipe.jl index e83d9ed..591f5b5 100644 --- a/src/Recipes/SeisImageRecipe.jl +++ b/src/Recipes/SeisImageRecipe.jl @@ -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