remove extra line
This commit is contained in:
parent
17e8bc6949
commit
56cf5249f9
@ -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 anything was added, call ax.legend and set the colors
|
||||||
if !isempty(handles)
|
if !isempty(handles)
|
||||||
fgcolor = py_color(sp[:foreground_color_legend])
|
|
||||||
leg = ax[:legend](handles,
|
leg = ax[:legend](handles,
|
||||||
labels,
|
labels,
|
||||||
loc = get(_pyplot_legend_pos, leg, "best"),
|
loc = get(_pyplot_legend_pos, leg, "best"),
|
||||||
@ -1297,6 +1296,7 @@ function py_add_legend(plt::Plot, sp::Subplot, ax)
|
|||||||
leg[:set_zorder](1000)
|
leg[:set_zorder](1000)
|
||||||
sp[:legendtitle] != nothing && leg[:set_title](sp[:legendtitle])
|
sp[:legendtitle] != nothing && leg[:set_title](sp[:legendtitle])
|
||||||
|
|
||||||
|
# fgcolor = py_color(sp[:foreground_color_legend])
|
||||||
lfcolor = py_color(sp[:legendfontcolor])
|
lfcolor = py_color(sp[:legendfontcolor])
|
||||||
for txt in leg[:get_texts]()
|
for txt in leg[:get_texts]()
|
||||||
PyPlot.plt[:setp](txt, color = lfcolor, family = sp[:legendfontfamily])
|
PyPlot.plt[:setp](txt, color = lfcolor, family = sp[:legendfontfamily])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user