clamp image for backends not supporting image

Does not work for GR or PyPlot which are supposed to support images natively
This commit is contained in:
Michael Krabbe Borregaard 2019-01-22 22:42:04 +01:00
parent efc4917724
commit f12d328cf7

View File

@ -335,7 +335,7 @@ end
yflip --> true yflip --> true
cbar --> false cbar --> false
fillcolor --> ColorGradient([:black, :white]) fillcolor --> ColorGradient([:black, :white])
SliceIt, 1:m, 1:n, Surface(convert(Matrix{Float64}, mat)) SliceIt, 1:m, 1:n, Surface(clamp!(convert(Matrix{Float64}, mat), 0., 1.))
end end
end end