Merge pull request #2828 from daschw/grays
fix recipe for arrays of grays
This commit is contained in:
commit
171c2f8e33
@ -1230,8 +1230,8 @@ end
|
|||||||
else
|
else
|
||||||
seriestype := :heatmap
|
seriestype := :heatmap
|
||||||
yflip --> true
|
yflip --> true
|
||||||
cbar --> false
|
colorbar --> false
|
||||||
fillcolor --> ColorGradient([:black, :white])
|
fillcolor --> cgrad([:black, :white])
|
||||||
SliceIt, m, n, Surface(clamp!(convert(Matrix{Float64}, mat), 0.0, 1.0))
|
SliceIt, m, n, Surface(clamp!(convert(Matrix{Float64}, mat), 0.0, 1.0))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -1247,7 +1247,7 @@ end
|
|||||||
else
|
else
|
||||||
seriestype := :heatmap
|
seriestype := :heatmap
|
||||||
yflip --> true
|
yflip --> true
|
||||||
cbar --> false
|
colorbar --> false
|
||||||
aspect_ratio --> :equal
|
aspect_ratio --> :equal
|
||||||
z, plotattributes[:fillcolor] = replace_image_with_heatmap(mat)
|
z, plotattributes[:fillcolor] = replace_image_with_heatmap(mat)
|
||||||
SliceIt, m, n, Surface(z)
|
SliceIt, m, n, Surface(z)
|
||||||
@ -1287,8 +1287,8 @@ end
|
|||||||
else
|
else
|
||||||
seriestype := :heatmap
|
seriestype := :heatmap
|
||||||
yflip --> true
|
yflip --> true
|
||||||
cbar --> false
|
colorbar --> false
|
||||||
fillcolor --> ColorGradient([:black, :white])
|
fillcolor --> cgrad([:black, :white])
|
||||||
SliceIt, x, y, Surface(convert(Matrix{Float64}, mat))
|
SliceIt, x, y, Surface(convert(Matrix{Float64}, mat))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -1302,7 +1302,7 @@ end
|
|||||||
else
|
else
|
||||||
seriestype := :heatmap
|
seriestype := :heatmap
|
||||||
yflip --> true
|
yflip --> true
|
||||||
cbar --> false
|
colorbar --> false
|
||||||
z, plotattributes[:fillcolor] = replace_image_with_heatmap(mat)
|
z, plotattributes[:fillcolor] = replace_image_with_heatmap(mat)
|
||||||
SliceIt, x, y, Surface(z)
|
SliceIt, x, y, Surface(z)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user