Added a Date & DateTime method for widen - enables xlims with Date or DateTime types
This commit is contained in:
parent
c35adbfeff
commit
b046ed9b90
@ -426,6 +426,11 @@ end
|
|||||||
|
|
||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# handle widen in the case that xlims are of type Date or DateTime
|
||||||
|
function widen(dmin::Union{Date,DateTime}, dmax::Union{Date,DateTime}, scale = :identity)
|
||||||
|
widen(Dates.value(dmin), Dates.value(dmax), scale)
|
||||||
|
end
|
||||||
|
|
||||||
# push the limits out slightly
|
# push the limits out slightly
|
||||||
function widen(lmin, lmax, scale = :identity)
|
function widen(lmin, lmax, scale = :identity)
|
||||||
f, invf = RecipesPipeline.scale_func(scale), RecipesPipeline.inverse_scale_func(scale)
|
f, invf = RecipesPipeline.scale_func(scale), RecipesPipeline.inverse_scale_func(scale)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user