clean up
This commit is contained in:
parent
4a55467eef
commit
bf518a961e
@ -1287,8 +1287,6 @@ function py_add_legend(plt::Plot, sp::Subplot, ax)
|
|||||||
loc = get(_pyplot_legend_pos, leg, "best"),
|
loc = get(_pyplot_legend_pos, leg, "best"),
|
||||||
scatterpoints = 1,
|
scatterpoints = 1,
|
||||||
fontsize = py_dpi_scale(plt, sp[:legendfontsize]),
|
fontsize = py_dpi_scale(plt, sp[:legendfontsize]),
|
||||||
# family = sp[:legendfont].family,
|
|
||||||
# framealpha = 0.6,
|
|
||||||
facecolor = py_color(sp[:background_color_legend]),
|
facecolor = py_color(sp[:background_color_legend]),
|
||||||
edgecolor = py_color(sp[:foreground_color_legend]),
|
edgecolor = py_color(sp[:foreground_color_legend]),
|
||||||
framealpha = alpha(plot_color(sp[:background_color_legend])),
|
framealpha = alpha(plot_color(sp[:background_color_legend])),
|
||||||
@ -1296,16 +1294,9 @@ 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])
|
|
||||||
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 = py_color(sp[:legendfontcolor]), family = sp[:legendfontfamily])
|
||||||
end
|
end
|
||||||
|
|
||||||
# set some legend properties
|
|
||||||
# frame = leg[:get_frame]()
|
|
||||||
# frame[set_facecolor_sym](py_color(sp[:background_color_legend]))
|
|
||||||
# frame[:set_edgecolor](fgcolor)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user