From aec99498c9d733f247c153b4d69c78f12a6142d7 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Thu, 9 Jul 2020 11:00:45 +0200 Subject: [PATCH] fix tests --- src/backends/pgfplotsx.jl | 1 + test/test_pgfplotsx.jl | 10 +++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index c7af33bc..84161ee9 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -394,6 +394,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend}) ), ) end + # add to legend? if sp[:legend] != :none leg_entry = if opt[:label] isa AVec get(opt[:label], i, "") diff --git a/test/test_pgfplotsx.jl b/test/test_pgfplotsx.jl index 302d4fb2..9345018a 100644 --- a/test/test_pgfplotsx.jl +++ b/test/test_pgfplotsx.jl @@ -314,16 +314,12 @@ end Plots._update_plot_object(ribbon_plot) axis = Plots.pgfx_axes(ribbon_plot.o)[1] plots = filter(x -> x isa PGFPlotsX.Plot, axis.contents) - @test length(plots) == 4 - @test !haskey(plots[1].options.dict, "fill") - @test !haskey(plots[2].options.dict, "fill") + @test length(plots) == 3 + @test haskey(plots[1].options.dict, "fill") + @test haskey(plots[2].options.dict, "fill") @test !haskey(plots[3].options.dict, "fill") - @test haskey(plots[4].options.dict, "fill") @test ribbon_plot.o !== nothing @test ribbon_plot.o.the_plot !== nothing - # mktempdir() do path - # @test_nowarn savefig(ribbon_plot, path*"ribbon.svg") - # end end # testset end # testset