Merge pull request #1307 from wkearn/pyplot_legend_style

Add linestyle argument to the legend
This commit is contained in:
Daniel Schwabeneder 2017-12-13 22:27:59 +01:00 committed by GitHub
commit 5b85cd83f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1236,6 +1236,7 @@ function py_add_legend(plt::Plot, sp::Subplot, ax)
PyPlot.plt[:Line2D]((0,1),(0,0),
color = py_color(_cycle(series[:fillcolor],1)),
linewidth = py_dpi_scale(plt, clamp(series[:linewidth], 0, 5)),
linestyle = py_linestyle(:path,series[:linestyle]),
marker = py_marker(series[:markershape]),
markeredgecolor = py_markerstrokecolor(series),
markerfacecolor = py_markercolor(series)