Fix plot(::Matrix{RGB{Float64}}) in plotly backend

This commit is contained in:
Sheehan Olver 2017-05-21 16:53:28 +10:00
parent ff3ba18b15
commit 9abcba3753

View File

@ -317,9 +317,10 @@ end
# # images - colors
@recipe function f{T<:Colorant}(mat::AMat{T})
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