fix pgfx_axes

This commit is contained in:
Simon Christ 2019-11-25 23:12:20 +01:00
parent fe07fe0a7b
commit f2af121661

View File

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