Merge pull request #849 from dlfivefifty/pull-request/9abcba37

Fix plot(::Matrix{RGB{Float64}}) in plotly backend
This commit is contained in:
Michael Krabbe Borregaard 2017-05-21 09:38:55 +02:00 committed by GitHub
commit 1d03e97721

View File

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