From c30a2bb9e02752785a5a960f7270f36883ac4e66 Mon Sep 17 00:00:00 2001 From: "Michael K. Borregaard" Date: Tue, 30 May 2017 16:55:50 +0200 Subject: [PATCH] Fix bug in _extrema definition --- src/Plots.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plots.jl b/src/Plots.jl index 20c41ad1..68c0308f 100644 --- a/src/Plots.jl +++ b/src/Plots.jl @@ -108,7 +108,7 @@ export # define functions (e.g. `_extrema`, that uses the NaNMath version (which ignores NaNs)) when the type is applicable for fun in (:extrema, :minimum, :maximum, :mean) - @eval $(Symbol(string("_",fun))){F<:AbstractFloat, N<:Integer}(x::AbstractArray{F, N}) = Base.$(fun)(filter(!isnan(x))) + @eval $(Symbol(string("_",fun))){F<:AbstractFloat}(x::AbstractArray{F}) = Base.$(fun)(filter(!isnan,x)) @eval $(Symbol(string("_",fun)))(x) = Base.$(fun)(x) end