Skip to content

Commit

Permalink
Export eU function
Browse files Browse the repository at this point in the history
  • Loading branch information
brenhinkeller committed Dec 8, 2024
1 parent 1a0aa4d commit 27c16dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ext/PlotsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ module PlotsExt

# Age-eU plots
Thermochron.ageeuplot(x::Vector{<:Chronometer}, args...; framestyle=:box, xlabel="eU [ppm]", ylabel="Age [Ma]", kwargs...) = ageeuplot!(plot(), x, args...; framestyle, xlabel, ylabel, kwargs...)
Thermochron.ageeuplot!(hdl::Plots.Plot, x::Vector{<:Chronometer}; seriestype=:scatter, mscolor=:auto, kwargs...) = plot!(hdl, eU.(x), Thermochron.val.(x); yerror=2*Thermochron.err.(x), seriestype, mscolor, kwargs...)
Thermochron.ageeuplot!(hdl::Plots.Subplot, x::Vector{<:Chronometer}; seriestype=:scatter, mscolor=:auto, kwargs...) = plot!(hdl, eU.(x), Thermochron.val.(x); yerror=2*Thermochron.err.(x), seriestype, mscolor, kwargs...)
Thermochron.ageeuplot!(hdl::Plots.Plot, x::Vector{<:Chronometer}; seriestype=:scatter, mscolor=:auto, kwargs...) = plot!(hdl, Thermochron.eU.(x), Thermochron.val.(x); yerror=2*Thermochron.err.(x), seriestype, mscolor, kwargs...)
Thermochron.ageeuplot!(hdl::Plots.Subplot, x::Vector{<:Chronometer}; seriestype=:scatter, mscolor=:auto, kwargs...) = plot!(hdl, Thermochron.eU.(x), Thermochron.val.(x); yerror=2*Thermochron.err.(x), seriestype, mscolor, kwargs...)

lowerbound(x::Uniform) = x.a
lowerbound(x::Distribution) = quantile(d, 0.025)
Expand Down
2 changes: 1 addition & 1 deletion src/Thermochron.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Thermochron
const ChronometerUnion{T} = Union{ZirconHe{T}, ApatiteHe{T}, ApatiteFT{T}, ApatiteTrackLength{T}}
export Chronometer, AbsoluteChronometer # Abstract types
export ApatiteTrackLength, ApatiteFT, ZirconHe, ApatiteHe # Concrete types
export chronometers, empiricaluncertainty!, # Functions
export chronometers, empiricaluncertainty!, eU, # Functions
get_age, get_age_sigma, set_age!, set_age_sigma!

include("helium.jl")
Expand Down

0 comments on commit 27c16dc

Please sign in to comment.