Merge pull request #1320 from apalugniok/pyplot-legend

Fix mismatched legend color when linecolor is given. Fixes #1319
This commit is contained in:
Andrew Palugniok 2017-12-17 16:00:08 +00:00 committed by GitHub
commit 91eaa32ad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]),