From d43eca1aef6d744ac1625e11bbfab5a4f3c67311 Mon Sep 17 00:00:00 2001 From: Zhanibek Date: Tue, 28 Apr 2020 10:59:37 +0900 Subject: [PATCH] pyplot: lw in legend scales with legendfont --- src/backends/pyplot.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index d518c9bd..36f71e3d 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -1317,7 +1317,7 @@ function py_add_legend(plt::Plot, sp::Subplot, ax) elseif series[:seriestype] in (:path, :straightline, :scatter) PyPlot.plt."Line2D"((0,1),(0,0), color = py_color(single_color(get_linecolor(series, clims)), get_linealpha(series)), - linewidth = py_thickness_scale(plt, clamp(get_linewidth(series), 0, 5)), + linewidth = py_thickness_scale(plt, clamp(sp[:legendfontsize]/10, 0, 5)), linestyle = py_linestyle(:path, get_linestyle(series)), marker = py_marker(_cycle(series[:markershape], 1)), markersize = py_thickness_scale(plt, sp[:legendfontsize]),