From 6b55b83abcf13f6537f09c01a478c31e2dfbd045 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Tue, 18 May 2021 22:09:56 +0200 Subject: [PATCH] fix legend entries --- src/backends/pgfplotsx.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index eb995880..d32a8779 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -229,7 +229,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend}) "colorbar style" => colorbar_style, ) else - push!(axis_opt, "colorbar" => "false") + push!(axis_opt, "colorbar" => "false") end if RecipesPipeline.is3d(sp) azim, elev = sp[:camera] @@ -452,7 +452,7 @@ function pgfx_add_series!(::Val{:path}, axis, series_opt, series, series_func, o ), ) end - pgfx_add_legend!(axis, series, opt, i) + pgfx_add_legend!(axis, series, opt, k) end # for segments # get that last marker if !isnothing(opt[:y]) && !any(isnan, opt[:y]) && opt[:markershape] isa AVec