pyplot: marker size scales correctly

This commit is contained in:
Zhanibek 2020-04-23 16:47:04 +09:00
parent fbd8c6ef25
commit 583042baf5

View File

@ -1323,7 +1323,7 @@ function py_add_legend(plt::Plot, sp::Subplot, ax)
markersize = py_thickness_scale(plt, 6), # 6 looks same the default, do not put ^2
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, 1.1) # scales better
markeredgewidth = py_thickness_scale(plt, series[:markerstrokewidth] * 6 / series[:markersize]) # retain the markersize/markerstroke ratio from the markers on the plot
)
else
series[:serieshandle][1]