Make the legendbox square as in GR

This commit is contained in:
Zh 2020-04-21 21:35:37 +09:00
parent 7a6617efe3
commit 3dbe5cc3a2

View File

@ -1344,6 +1344,7 @@ function py_add_legend(plt::Plot, sp::Subplot, ax)
facecolor = py_color(sp[:background_color_legend]),
edgecolor = py_color(sp[:foreground_color_legend]),
framealpha = alpha(plot_color(sp[:background_color_legend])),
fancybox = false # makes the legend box square
)
frame = leg."get_frame"()
frame."set_linewidth"(py_thickness_scale(plt, 1))