From 2a720a74910c6b4ce39120739bf6a6411a9bc5ab Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Fri, 6 Dec 2019 16:04:10 +0100 Subject: [PATCH] better ribbon tests --- test/test_pgfplotsx.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_pgfplotsx.jl b/test/test_pgfplotsx.jl index 0629470a..dfbed5f0 100644 --- a/test/test_pgfplotsx.jl +++ b/test/test_pgfplotsx.jl @@ -139,5 +139,13 @@ end cc = rand(10) conf = [aa-cc bb-cc] p = plot(collect(1:10),fill(1,10), ribbon=conf) + Plots._update_plot_object(p) + axis = Plots.pgfx_axes(p.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 !haskey(plots[3].options.dict, "fill") + @test haskey(plots[4].options.dict, "fill") end # testset end # testset