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]),