Skip to content

Commit 87af6fb

Browse files
authored
Merge pull request #77 from JuliaGraphics/aa/histbins
Use right-closed histograms when overloading histrange
2 parents ffae8f4 + 9d33a9c commit 87af6fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ColorVectorSpace.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ varm{C<:AbstractGray}(v::AbstractArray{C}, s::AbstractGray; corrected::Bool=true
342342
real{C<:AbstractGray}(::Type{C}) = real(eltype(C))
343343

344344
#histrange for Gray type
345-
histrange{T}(v::AbstractArray{Gray{T}}, n::Integer) = histrange(convert(Array{Float32}, map(gray, v)), n)
345+
histrange{T}(v::AbstractArray{Gray{T}}, n::Integer) = histrange(convert(Array{Float32}, map(gray, v)), n, :right)
346346

347347
# To help type inference
348348
promote_array_type{T<:Real,C<:MathTypes}(F, ::Type{T}, ::Type{C}) = base_colorant_type(C){Base.promote_array_type(F, T, eltype(C))}

0 commit comments

Comments
 (0)