From 9abcba375360b13fce8102fc47a47173942b1ec2 Mon Sep 17 00:00:00 2001 From: Sheehan Olver Date: Sun, 21 May 2017 16:53:28 +1000 Subject: [PATCH] Fix plot(::Matrix{RGB{Float64}}) in plotly backend --- src/series.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/series.jl b/src/series.jl index f7233c1a..f1ee5739 100644 --- a/src/series.jl +++ b/src/series.jl @@ -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