fix pgfx_axes

This commit is contained in:
Simon Christ 2020-01-10 14:10:14 +01:00
parent 5b628bf48d
commit 4eef8e7352

View File

@ -30,8 +30,7 @@ end
## end user utility functions ## end user utility functions
function pgfx_axes(pgfx_plot::PGFPlotsXPlot) function pgfx_axes(pgfx_plot::PGFPlotsXPlot)
gp = pgfx_plot.the_plot.elements[1].elements[1] return pgfx_plot.the_plot.elements[1].elements
return gp isa PGFPlotsX.GroupPlot ? gp.contents : gp
end end
pgfx_preamble() = pgfx_preamble(current()) pgfx_preamble() = pgfx_preamble(current())