add axes function for surfaces
This commit is contained in:
parent
d98262bc08
commit
e53f27c224
@ -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
|
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...)
|
@eval Base.$f(surf::Surface, args...) = $f(surf.surf, args...)
|
||||||
end
|
end
|
||||||
Base.copy(surf::Surface) = Surface(copy(surf.surf))
|
Base.copy(surf::Surface) = Surface(copy(surf.surf))
|
||||||
|
|||||||
@ -344,7 +344,7 @@ end
|
|||||||
|
|
||||||
@recipe f(n::Integer) = is3d(get(plotattributes,:seriestype,:path)) ? (SliceIt, n, n, n) : (SliceIt, n, n, nothing)
|
@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 (
|
st -> st in (
|
||||||
:contour,
|
:contour,
|
||||||
:contourf,
|
:contourf,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user