From e44b220b8441e4f929e9e3093e5ae6bd29794452 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Thu, 30 Apr 2020 10:03:21 +0200 Subject: [PATCH] fix legend marker linewidth for steppre and steppost [skip ci] --- src/backends/pyplot.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 8b7aa3a2..6e525ca6 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -1307,7 +1307,7 @@ function py_add_legend(plt::Plot, sp::Subplot, ax) linewidth = py_thickness_scale(plt, clamp(get_linewidth(series), 0, 5)), linestyle = py_linestyle(series[:seriestype], get_linestyle(series)) ) - elseif series[:seriestype] in (:path, :straightline, :scatter) + elseif series[:seriestype] in (:path, :straightline, :scatter, :steppre, :steppost) hasline = get_linewidth(series) > 0 PyPlot.plt."Line2D"((0,1),(0,0), color = py_color(single_color(get_linecolor(series, clims)), get_linealpha(series)),