Merge pull request #1562 from daschw/py_marker

fix markercolor as vector on pyplot (fix #1494)
This commit is contained in:
Daniel Schwabeneder 2018-06-18 09:22:13 +02:00 committed by GitHub
commit ddf5bf472f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1270,8 +1270,8 @@ function py_add_legend(plt::Plot, sp::Subplot, ax)
linewidth = py_dpi_scale(plt, clamp(get_linewidth(series), 0, 5)),
linestyle = py_linestyle(:path, get_linestyle(series)),
marker = py_marker(series[:markershape]),
markeredgecolor = py_markerstrokecolor(series),
markerfacecolor = series[:marker_z] == nothing ? py_markercolor(series) : py_color(series[:markercolor][0.5])
markeredgecolor = py_color(get_markerstrokecolor(series), get_markerstrokealpha(series)),
markerfacecolor = series[:marker_z] == nothing ? py_color(get_markercolor(series), get_markeralpha(series)) : py_color(series[:markercolor][0.5])
)
else
series[:serieshandle][1]