From f4ad9ece776bef1aff1db6843a7fefc7afdb111a Mon Sep 17 00:00:00 2001 From: Zhanibek Date: Thu, 23 Apr 2020 14:46:30 +0900 Subject: [PATCH] pyplot: legend marker scales independently --- src/backends/pyplot.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 155ab0af..f39c7b89 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -1320,10 +1320,10 @@ function py_add_legend(plt::Plot, sp::Subplot, ax) linewidth = py_thickness_scale(plt, clamp(get_linewidth(series), 0, 5)), linestyle = py_linestyle(:path, get_linestyle(series)), marker = py_marker(_cycle(series[:markershape], 1)), - # markersize = py_thickness_scale(plt, series[:markersize]), # In case we decide that markersize needs to be scaled in the legend too + markersize = py_thickness_scale(plt, 6), # 6 looks same the default markeredgecolor = py_color(single_color(get_markerstrokecolor(series)), get_markerstrokealpha(series)), markerfacecolor = py_color(single_color(get_markercolor(series, clims)), get_markeralpha(series)), - markeredgewidth = py_thickness_scale(plt, series[:markerstrokewidth]) + markeredgewidth = py_thickness_scale(plt, 1) ) else series[:serieshandle][1]