PyPlot legends now show marker types.

This commit is contained in:
JackDevine 2017-10-05 21:35:38 +13:00
parent 073724a84c
commit 878fa48afa

View File

@ -1183,6 +1183,12 @@ function py_add_legend(plt::Plot, sp::Subplot, ax)
color = py_color(_cycle(series[:fillcolor],1)),
linewidth = py_dpi_scale(plt, 4)
)
elseif series[:seriestype] == :path
PyPlot.plt[:Line2D]((0,1),(0,0),
color = py_color(_cycle(series[:fillcolor],1)),
linewidth = py_dpi_scale(plt, 1),
marker = py_marker(series[:markershape])
)
else
series[:serieshandle][1]
end)