Update test_pgfplotsx.jl

This commit is contained in:
Simon Christ 2020-07-31 15:33:05 +02:00 committed by GitHub
parent a842ebe599
commit 56775cc1c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -341,4 +341,10 @@ end # testset
axes = Plots.pgfx_axes(pl.o)
@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)
Plots._update_plot_object(pl)
plot!(pl)
Plots._update_plot_object(pl)
axes = Plots.pgfx_axes(pl.o)
@test axes[1].contents[end] == raw"\node at (0,0.5) {\huge hi};"
end # testset