From 1645c3f66b19c229b188dc650dd9f67970008a18 Mon Sep 17 00:00:00 2001 From: Will Kearney Date: Wed, 13 Dec 2017 15:07:54 -0500 Subject: [PATCH] Add linestyle argument to the legend This fixes #1305 --- src/backends/pyplot.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 8a9c7680..fb97190d 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -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)