From 777642ef55cae1867783bb1965b020d22b4d5603 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Mon, 2 Apr 2018 22:44:29 +0200 Subject: [PATCH] pyplot use linecollection only WITHOUT fillrange --- 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 47ae5170..9c107fdb 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -495,7 +495,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series) if st in (:path, :path3d, :steppre, :steppost, :straightline) if maximum(series[:linewidth]) > 0 segments = iter_segments(series) - if length(segments) > 1 && (any(typeof(series[attr]) <: AbstractVector for attr in (:fillcolor, :fillalpha)) || series[:fill_z] != nothing) && !(typeof(series[:linestyle]) <: AbstractVector) + if length(segments) > 1 && (!any(typeof(series[attr]) <: AbstractVector for attr in (:fillcolor, :fillalpha)) || series[:fill_z] != nothing) && !(typeof(series[:linestyle]) <: AbstractVector) # multicolored line segments n = length(segments) # segments = Array(Any,n)