From 56cf5249f9778fa5b8fe08799f8a5c5e1922b94a Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Wed, 30 May 2018 16:18:56 +0200 Subject: [PATCH] remove extra line --- 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 19dfb72c..be3adbc7 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -1282,7 +1282,6 @@ function py_add_legend(plt::Plot, sp::Subplot, ax) # if anything was added, call ax.legend and set the colors if !isempty(handles) - fgcolor = py_color(sp[:foreground_color_legend]) leg = ax[:legend](handles, labels, loc = get(_pyplot_legend_pos, leg, "best"), @@ -1297,6 +1296,7 @@ function py_add_legend(plt::Plot, sp::Subplot, ax) leg[:set_zorder](1000) sp[:legendtitle] != nothing && leg[:set_title](sp[:legendtitle]) + # fgcolor = py_color(sp[:foreground_color_legend]) lfcolor = py_color(sp[:legendfontcolor]) for txt in leg[:get_texts]() PyPlot.plt[:setp](txt, color = lfcolor, family = sp[:legendfontfamily])