Fix mismatched legend color when linecolor is given.

This commit is contained in:
Andrew Palugniok 2017-12-16 20:10:55 +00:00
parent 61be113714
commit e402f5dfce

View File

@ -1234,7 +1234,7 @@ function py_add_legend(plt::Plot, sp::Subplot, ax)
) )
elseif series[:seriestype] == :path elseif series[:seriestype] == :path
PyPlot.plt[:Line2D]((0,1),(0,0), PyPlot.plt[:Line2D]((0,1),(0,0),
color = py_color(_cycle(series[:fillcolor],1)), color = py_color(_cycle(series[:linecolor],1)),
linewidth = py_dpi_scale(plt, clamp(series[:linewidth], 0, 5)), linewidth = py_dpi_scale(plt, clamp(series[:linewidth], 0, 5)),
linestyle = py_linestyle(:path,series[:linestyle]), linestyle = py_linestyle(:path,series[:linestyle]),
marker = py_marker(series[:markershape]), marker = py_marker(series[:markershape]),