removed heatmap assert

This commit is contained in:
Thomas Breloff 2016-05-09 22:44:22 -04:00
parent 536da01714
commit b89ae245ec

View File

@ -346,15 +346,15 @@ end
# surface-like... matrix grid # surface-like... matrix grid
function process_inputs{TX,TY,TZ}(plt::AbstractPlot, d::KW, x::AVec{TX}, y::AVec{TY}, zmat::AMat{TZ}) function process_inputs{TX,TY,TZ}(plt::AbstractPlot, d::KW, x::AVec{TX}, y::AVec{TY}, zmat::AMat{TZ})
@assert size(zmat) == (length(x), length(y)) # @assert size(zmat) == (length(x), length(y))
if TX <: Number && !issorted(x) # if TX <: Number && !issorted(x)
idx = sortperm(x) # idx = sortperm(x)
x, zmat = x[idx], zmat[idx, :] # x, zmat = x[idx], zmat[idx, :]
end # end
if TY <: Number && !issorted(y) # if TY <: Number && !issorted(y)
idx = sortperm(y) # idx = sortperm(y)
y, zmat = y[idx], zmat[:, idx] # y, zmat = y[idx], zmat[:, idx]
end # end
d[:x], d[:y], d[:z] = x, y, Surface{Matrix{TZ}}(zmat) d[:x], d[:y], d[:z] = x, y, Surface{Matrix{TZ}}(zmat)
if !like_surface(get(d, :linetype, :none)) if !like_surface(get(d, :linetype, :none))
d[:linetype] = :contour d[:linetype] = :contour