Merge 5fb8e84939708334925f553311dc698dfd398235 into 9e92ada61a1b4f0bf41387198ab46ca66170d713

This commit is contained in:
AdamWysokinski 2022-04-27 22:52:03 -04:00 committed by GitHub
commit 71c900771b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1104,10 +1104,10 @@ function gr_add_legend(sp, leg, viewport_plotarea)
ms = first(series[:markersize])
msw = first(series[:markerstrokewidth])
s, sw = if ms > 0
0.8 * sp[:legend_font_pointsize],
0.8 * sp[:legend_font_pointsize] * msw / ms
0.4 * sp[:legend_font_pointsize],
0.4 * sp[:legend_font_pointsize] * msw / ms
else
0, 0.8 * sp[:legend_font_pointsize] * msw / 8
0, 0.4 * sp[:legend_font_pointsize] * msw / 8
end
gr_draw_markers(series, xpos - leg.width_factor * 2, ypos, clims, s, sw)
end