From 95a5b5025a7e0b57e1af20abf5c3bd1c86cd9cc4 Mon Sep 17 00:00:00 2001 From: Andrew Palugniok Date: Tue, 19 Dec 2017 12:05:11 +0000 Subject: [PATCH] Fix PyPlot ignoring alpha values of images --- src/backends/pyplot.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 2cfe730d..461c8e6f 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -736,7 +736,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series) z = if eltype(img) <: Colors.AbstractGray float(img) elseif eltype(img) <: Colorant - map(c -> Float64[red(c),green(c),blue(c)], img) + map(c -> Float64[red(c),green(c),blue(c),alpha(c)], img) else z # hopefully it's in a data format that will "just work" with imshow end