fix legend frame
This commit is contained in:
parent
64ec922d7f
commit
789cf1d66b
@ -1294,8 +1294,9 @@ function py_add_legend(plt::Plot, sp::Subplot, ax)
|
|||||||
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])),
|
||||||
linewidth = py_thickness_scale(plt, 0.75),
|
|
||||||
)
|
)
|
||||||
|
frame = leg[:get_frame]()
|
||||||
|
frame[:set_linewidth](py_thickness_scale(plt, 1))
|
||||||
leg[:set_zorder](1000)
|
leg[:set_zorder](1000)
|
||||||
sp[:legendtitle] != nothing && leg[:set_title](sp[:legendtitle])
|
sp[:legendtitle] != nothing && leg[:set_title](sp[:legendtitle])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user