Add linestyle argument to the legend

This fixes #1305
This commit is contained in:
Will Kearney 2017-12-13 15:07:54 -05:00
parent 084d45141d
commit 1645c3f66b

View File

@ -1236,6 +1236,7 @@ function py_add_legend(plt::Plot, sp::Subplot, ax)
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[:fillcolor],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]),
marker = py_marker(series[:markershape]), marker = py_marker(series[:markershape]),
markeredgecolor = py_markerstrokecolor(series), markeredgecolor = py_markerstrokecolor(series),
markerfacecolor = py_markercolor(series) markerfacecolor = py_markercolor(series)