Merge pull request #849 from dlfivefifty/pull-request/9abcba37
Fix plot(::Matrix{RGB{Float64}}) in plotly backend
This commit is contained in:
commit
1d03e97721
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user