fix pgfx_axes

This commit is contained in:
Simon Christ 2019-11-25 23:12:20 +01:00
parent 568c4a0228
commit ce5c36ded5

View File

@ -32,8 +32,8 @@ Base.@kwdef mutable struct PGFPlotsXPlot
end
function pgfx_axes(pgfx_plot::PGFPlotsXPlot)
gp = pgfx_plot.the_plot.elements[1]
return gp isa PGFPlotsX.GroupPlot ? gp.elements[1].contents : gp
gp = pgfx_plot.the_plot.elements[1].elements[1]
return gp isa PGFPlotsX.GroupPlot ? gp.contents : gp
end
function pgfx_preample(pgfx_plot::Plots.Plot{Plots.PGFPlotsXBackend})