Make the legendbox square as in GR
This commit is contained in:
parent
7a6617efe3
commit
3dbe5cc3a2
@ -1344,6 +1344,7 @@ 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])),
|
||||||
|
fancybox = false # makes the legend box square
|
||||||
)
|
)
|
||||||
frame = leg."get_frame"()
|
frame = leg."get_frame"()
|
||||||
frame."set_linewidth"(py_thickness_scale(plt, 1))
|
frame."set_linewidth"(py_thickness_scale(plt, 1))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user