From 878fa48afad20a00f7765dad1b691d20ae66627c Mon Sep 17 00:00:00 2001 From: JackDevine Date: Thu, 5 Oct 2017 21:35:38 +1300 Subject: [PATCH] PyPlot legends now show marker types. --- src/backends/pyplot.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index ea0ba6c7..26af0634 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -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)