Remove line through marker in pgfplots legend.

This commit is contained in:
Niklas Korsbo 2019-11-20 18:05:41 +00:00
parent e084c1410c
commit e4e9cbf6cb

View File

@ -128,16 +128,18 @@ function pgf_marker(plotattributes, i = 1)
shape = _cycle(plotattributes[:markershape], i) shape = _cycle(plotattributes[:markershape], i)
cstr, a = pgf_color(plot_color(get_markercolor(plotattributes, i), get_markeralpha(plotattributes, i))) cstr, a = pgf_color(plot_color(get_markercolor(plotattributes, i), get_markeralpha(plotattributes, i)))
cstr_stroke, a_stroke = pgf_color(plot_color(get_markerstrokecolor(plotattributes, i), get_markerstrokealpha(plotattributes, i))) cstr_stroke, a_stroke = pgf_color(plot_color(get_markerstrokecolor(plotattributes, i), get_markerstrokealpha(plotattributes, i)))
""" return string(
mark = $(get(_pgfplots_markers, shape, "*")), "mark = $(get(_pgfplots_markers, shape, "*")),\n",
mark size = $(pgf_thickness_scaling(plotattributes) * 0.5 * _cycle(plotattributes[:markersize], i)), "mark size = $(pgf_thickness_scaling(plotattributes) * 0.5 * _cycle(plotattributes[:markersize], i)),\n",
mark options = { plotattributes[:seriestype] == :scatter ? "only marks,\n" : "",
color = $cstr_stroke, draw opacity = $a_stroke, "mark options = {
fill = $cstr, fill opacity = $a, color = $cstr_stroke, draw opacity = $a_stroke,
line width = $(pgf_thickness_scaling(plotattributes) * _cycle(plotattributes[:markerstrokewidth], i)), fill = $cstr, fill opacity = $a,
rotate = $(shape == :dtriangle ? 180 : 0), line width = $(pgf_thickness_scaling(plotattributes) * _cycle(plotattributes[:markerstrokewidth], i)),
$(get(_pgfplots_linestyles, _cycle(plotattributes[:markerstrokestyle], i), "solid")) rotate = $(shape == :dtriangle ? 180 : 0),
}""" $(get(_pgfplots_linestyles, _cycle(plotattributes[:markerstrokestyle], i), "solid"))
}"
)
end end
function pgf_add_annotation!(o, x, y, val, thickness_scaling = 1) function pgf_add_annotation!(o, x, y, val, thickness_scaling = 1)