From bd287f4656b08f21360f977f765a8c65475bc3f7 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Wed, 14 Oct 2020 21:30:04 +0200 Subject: [PATCH 1/2] fix pyplot image --- src/backends/pyplot.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index c47eebaf..b08d121e 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -618,7 +618,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series) dy = (ymax - ymin) / (length(series[:y]) - 1) / 2 z = if eltype(z) <: Colors.AbstractGray float(z) - elseif eltype(img) <: Colorant + elseif eltype(z) <: Colorant map(c -> Float64[red(c),green(c),blue(c),alpha(c)], z) else z # hopefully it's in a data format that will "just work" with imshow @@ -727,7 +727,7 @@ function py_set_lims(ax, sp::Subplot, axis::Axis) end function py_surround_latextext(latexstring, env) - if latexstring[1] == '$' && latexstring[end] == '$' + if !isempty(latexstring) && latexstring[1] == '$' && latexstring[end] == '$' unenclosed = latexstring[2:end-1] else unenclosed = latexstring From bae04d05a3b58ee78fa834b51c9d6db36d0ec9c8 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Wed, 14 Oct 2020 21:31:48 +0200 Subject: [PATCH 2/2] up version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index b97c3e28..b9060268 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Plots" uuid = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" author = ["Tom Breloff (@tbreloff)"] -version = "1.6.10" +version = "1.6.11" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"