From 930812cbae4db94896af045d564ac0a075261213 Mon Sep 17 00:00:00 2001 From: Lakshya Khatri Date: Wed, 29 Jul 2020 20:29:33 +0530 Subject: [PATCH] Add colors to pixel seriestype for pyplot backend --- 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 ac2019c0..bfa92d3b 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -438,7 +438,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series) # push!(handles, handle) # else for (i, rng) in enumerate(iter_segments(series)) - handle = ax."plot"((arg[rng] for arg in xyargs)...; + handle = ax."plot"((arg[rng] for arg in xyargs)..., label = i == 1 ? series[:label] : "", zorder = series[:series_plotindex], color = py_color(single_color(get_linecolor(series, clims, i)), get_linealpha(series, i)), @@ -483,7 +483,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series) handle = ax."plot"(x, y, py_marker(:pixel); label = series[:label], zorder = series[:series_plotindex] + 0.5, - color = py_color(single_color(get_linecolor(series, clims)), get_linealpha(series)), + color = py_color(single_color(get_linecolor(series)), get_linealpha(series)), )[1] push!(handles, handle) end