robust pgfx_axes

This commit is contained in:
Simon Christ 2019-11-25 12:21:12 +01:00
parent 02b54e72a6
commit aaaedcab1a

View File

@ -11,7 +11,11 @@ Base.@kwdef mutable struct PGFPlotsXPlot
end end
end end
pgfx_axes(pgfx_plot::PGFPlotsXPlot) = pgfx_plot.the_plot.elements[1].elements[1].contents function pgfx_axes(pgfx_plot::PGFPlotsXPlot)
gp = pgfx_plot.the_plot.elements[1]
return gp isa PGFPlotsX.GroupPlot ? gp.elements[1].contents : gp
end
function surface_to_vecs(x::AVec, y::AVec, s::Union{AMat, Surface}) function surface_to_vecs(x::AVec, y::AVec, s::Union{AMat, Surface})
a = Array(s) a = Array(s)