-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from firasalchalabi/add-makeAnimation
Modify makeAnimation() to calculate vmin and vmax value globally for the cube
- Loading branch information
Showing
3 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
# Creates an Axis object to be used by SeisColor, SeisOverlay, SeisWiggle. | ||
function __create_axis(fig) | ||
return Axis(fig, yreversed=true, xautolimitmargin=(0,0), yautolimitmargin=(0,0)) | ||
end | ||
|
||
# Calculates the endpoints for pclip | ||
function __calculate_pclip(A::AbstractArray{<:Real}; pclip=98) | ||
if (pclip<=100) | ||
a = -quantile(abs.(A[:]), (pclip/100)) | ||
else | ||
a = -quantile(abs.(A[:]), 1)*pclip/100 | ||
end | ||
b = -a | ||
|
||
return a, b | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters