add plot_color

This commit is contained in:
Daniel Schwabeneder 2018-05-30 16:20:19 +02:00
parent 56cf5249f9
commit 4a55467eef

View File

@ -1291,7 +1291,7 @@ function py_add_legend(plt::Plot, sp::Subplot, ax)
# framealpha = 0.6, # 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(sp[:background_color_legend]), framealpha = alpha(plot_color(sp[:background_color_legend])),
) )
leg[:set_zorder](1000) leg[:set_zorder](1000)
sp[:legendtitle] != nothing && leg[:set_title](sp[:legendtitle]) sp[:legendtitle] != nothing && leg[:set_title](sp[:legendtitle])