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:
parent
efc4917724
commit
f12d328cf7
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user