move grid line to the back

This commit is contained in:
Simon Christ 2020-03-18 15:01:00 +01:00
parent da372b3d6a
commit 26af108979

View File

@ -140,7 +140,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
"fill" => bgc_inside, "fill" => bgc_inside,
"opacity" => bgc_inside_a, "opacity" => bgc_inside_a,
), ),
# "axis on top" => nothing, "axis on top" => nothing,
# "framed" => nothing, # "framed" => nothing,
# These are for layouting # These are for layouting
"anchor" => "north west", "anchor" => "north west",
@ -1035,11 +1035,15 @@ function pgfx_axis!(opt::PGFPlotsX.Options, sp::Subplot, letter)
) )
push!( push!(
opt, opt,
string(letter, " grid style") => pgfx_linestyle( "set layers" => nothing,
pgfx_thickness_scaling(sp) * axis[:gridlinewidth], string(letter, " grid style") => push!(
axis[:foreground_color_grid], pgfx_linestyle(
axis[:gridalpha], pgfx_thickness_scaling(sp) * axis[:gridlinewidth],
axis[:gridstyle], axis[:foreground_color_grid],
axis[:gridalpha],
axis[:gridstyle],
),
"/pgfplots/on layer" => "axis grid"
), ),
) )
end end