add axes function for surfaces

This commit is contained in:
Daniel Schwabeneder 2020-04-01 12:54:40 +02:00
parent d98262bc08
commit e53f27c224
2 changed files with 3 additions and 3 deletions

View File

@ -661,7 +661,7 @@ Surface(f::Function, x, y) = Surface(Float64[f(xi,yi) for yi in y, xi in x])
Base.Array(surf::Surface) = surf.surf
for f in (:length, :size)
for f in (:length, :size, :axes)
@eval Base.$f(surf::Surface, args...) = $f(surf.surf, args...)
end
Base.copy(surf::Surface) = Surface(copy(surf.surf))

View File

@ -344,7 +344,7 @@ end
@recipe f(n::Integer) = is3d(get(plotattributes,:seriestype,:path)) ? (SliceIt, n, n, n) : (SliceIt, n, n, nothing)
all3D(plotattributes) = all(
all3D(plotattributes) = trueOrAllTrue(
st -> st in (
:contour,
:contourf,