From 51d4630405a6db0081c174eb95930c6ff990e178 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Wed, 8 Nov 2017 22:02:40 +0100 Subject: [PATCH] change pgfplots legend symbol for shapes and filled plots --- src/backends/pgfplots.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backends/pgfplots.jl b/src/backends/pgfplots.jl index ef009fe1..93acf765 100644 --- a/src/backends/pgfplots.jl +++ b/src/backends/pgfplots.jl @@ -207,6 +207,9 @@ function pgf_series(sp::Subplot, series::Series) # add to legend? if sp[:legend] != :none && should_add_to_legend(series) kw[:legendentry] = d[:label] + if st == :shape || d[:fillrange] != nothing + push!(style, "area legend") + end else push!(style, "forget plot") end