From 5138c4940caaca765fba611148756b457430e308 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Fri, 31 Jul 2020 19:49:37 +0200 Subject: [PATCH] Update test_pgfplotsx.jl --- test/test_pgfplotsx.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_pgfplotsx.jl b/test/test_pgfplotsx.jl index 3d5919b3..adef28c0 100644 --- a/test/test_pgfplotsx.jl +++ b/test/test_pgfplotsx.jl @@ -342,8 +342,10 @@ end # testset @test !haskey(axes[1].options.dict, "axis line shift") @test haskey(axes[2].options.dict, "axis line shift") pl = plot(x->x, -1:1; add = raw"\node at (0,0.5) {\huge hi};", extra_kwargs = :subplot) + @test pl[1][:extra_kwargs] == Dict(:add => raw"\node at (0,0.5) {\huge hi};") Plots._update_plot_object(pl) plot!(pl) + @test pl[1][:extra_kwargs] == Dict(:add => raw"\node at (0,0.5) {\huge hi};") Plots._update_plot_object(pl) axes = Plots.pgfx_axes(pl.o) @test axes[1].contents[end] == raw"\node at (0,0.5) {\huge hi};"