Merge pull request #1281 from hayatoikoma/fix_grayimg

Fix the display of an grayscale image for image-nonsupported backends
This commit is contained in:
Daniel Schwabeneder 2017-12-05 19:43:38 +01:00 committed by GitHub
commit 34dedd36e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,9 +306,9 @@ end
# # images - grays
@recipe function f(mat::AMat{T}) where T<:Gray
n, m = size(mat)
if is_seriestype_supported(:image)
seriestype := :image
n, m = size(mat)
SliceIt, 1:m, 1:n, Surface(mat)
else
seriestype := :heatmap