Fix the display of an grayscale image for image-nonsupported backends
This commit is contained in:
parent
4bbe367aab
commit
39a7815f80
@ -306,9 +306,9 @@ end
|
|||||||
# # images - grays
|
# # images - grays
|
||||||
|
|
||||||
@recipe function f(mat::AMat{T}) where T<:Gray
|
@recipe function f(mat::AMat{T}) where T<:Gray
|
||||||
|
n, m = size(mat)
|
||||||
if is_seriestype_supported(:image)
|
if is_seriestype_supported(:image)
|
||||||
seriestype := :image
|
seriestype := :image
|
||||||
n, m = size(mat)
|
|
||||||
SliceIt, 1:m, 1:n, Surface(mat)
|
SliceIt, 1:m, 1:n, Surface(mat)
|
||||||
else
|
else
|
||||||
seriestype := :heatmap
|
seriestype := :heatmap
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user