From e53f27c2240a45feb9a994717a893be05ea3e695 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Wed, 1 Apr 2020 12:54:40 +0200 Subject: [PATCH] add axes function for surfaces --- src/components.jl | 4 ++-- src/series.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components.jl b/src/components.jl index c87fa50f..5eebfff1 100644 --- a/src/components.jl +++ b/src/components.jl @@ -661,8 +661,8 @@ 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) - @eval Base.$f(surf::Surface, args...) = $f(surf.surf, args...) +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)) Base.eltype(surf::Surface{T}) where {T} = eltype(T) diff --git a/src/series.jl b/src/series.jl index 5b6749ad..f646469b 100644 --- a/src/series.jl +++ b/src/series.jl @@ -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,