From e402f5dfce2be0c9e127171debb804f96dcab194 Mon Sep 17 00:00:00 2001 From: Andrew Palugniok Date: Sat, 16 Dec 2017 20:10:55 +0000 Subject: [PATCH] Fix mismatched legend color when linecolor is given. --- 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 fb97190d..2cfe730d 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -1234,7 +1234,7 @@ function py_add_legend(plt::Plot, sp::Subplot, ax) ) elseif series[:seriestype] == :path PyPlot.plt[:Line2D]((0,1),(0,0), - color = py_color(_cycle(series[:fillcolor],1)), + color = py_color(_cycle(series[:linecolor],1)), linewidth = py_dpi_scale(plt, clamp(series[:linewidth], 0, 5)), linestyle = py_linestyle(:path,series[:linestyle]), marker = py_marker(series[:markershape]),