pyplot: legendmarker size 0.8
This commit is contained in:
parent
d43eca1aef
commit
8d829adb5c
@ -1317,13 +1317,13 @@ function py_add_legend(plt::Plot, sp::Subplot, ax)
|
|||||||
elseif series[:seriestype] in (:path, :straightline, :scatter)
|
elseif series[:seriestype] in (:path, :straightline, :scatter)
|
||||||
PyPlot.plt."Line2D"((0,1),(0,0),
|
PyPlot.plt."Line2D"((0,1),(0,0),
|
||||||
color = py_color(single_color(get_linecolor(series, clims)), get_linealpha(series)),
|
color = py_color(single_color(get_linecolor(series, clims)), get_linealpha(series)),
|
||||||
linewidth = py_thickness_scale(plt, clamp(sp[:legendfontsize]/10, 0, 5)),
|
linewidth = py_thickness_scale(plt, sp[:legendfontsize] / 8),
|
||||||
linestyle = py_linestyle(:path, get_linestyle(series)),
|
linestyle = py_linestyle(:path, get_linestyle(series)),
|
||||||
marker = py_marker(_cycle(series[:markershape], 1)),
|
marker = py_marker(_cycle(series[:markershape], 1)),
|
||||||
markersize = py_thickness_scale(plt, sp[:legendfontsize]),
|
markersize = py_thickness_scale(plt, 0.8 * sp[:legendfontsize]),
|
||||||
markeredgecolor = py_color(single_color(get_markerstrokecolor(series)), get_markerstrokealpha(series)),
|
markeredgecolor = py_color(single_color(get_markerstrokecolor(series)), get_markerstrokealpha(series)),
|
||||||
markerfacecolor = py_color(single_color(get_markercolor(series, clims)), get_markeralpha(series)),
|
markerfacecolor = py_color(single_color(get_markercolor(series, clims)), get_markeralpha(series)),
|
||||||
markeredgewidth = py_thickness_scale(plt, series[:markerstrokewidth] * sp[:legendfontsize] / series[:markersize]) # retain the markersize/markerstroke ratio from the markers on the plot
|
markeredgewidth = py_thickness_scale(plt, 0.8 * series[:markerstrokewidth] * sp[:legendfontsize] / series[:markersize]) # retain the markersize/markerstroke ratio from the markers on the plot
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
series[:serieshandle][1]
|
series[:serieshandle][1]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user