From b6da96fb78d36d11c59d4d6bd9389900bc5e595b Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Tue, 19 Nov 2019 14:58:03 +0100 Subject: [PATCH] add area legend for shapes --- src/backends/pgfplotsx.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index 422e1c27..9b6dbbd5 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -537,6 +537,9 @@ function _update_plot_object(plt::Plot{PGFPlotsXBackend}) "color" => opt[:linecolor], "scatter" => nothing, ) + if st == :shape + push!(series_opt, "area legend" => nothing) + end if opt[:marker_z] !== nothing push!(series_opt, "point meta" => "explicit") end