diff --git a/src/shorthands.jl b/src/shorthands.jl index 86e913eb..7c5d7003 100644 --- a/src/shorthands.jl +++ b/src/shorthands.jl @@ -251,7 +251,8 @@ Draw contour lines of the `Surface` z. # Example ```julia-repl -julia> contour(-20:20,-20:20,(x,y)->x^2+y^2) +julia> x = y = range(-20, 20, length = 100) +julia> contour(x, y, (x, y) -> x^2 + y^2) ``` """ @shorthands contour @@ -270,7 +271,8 @@ Draw a 3D surface plot. # Example ```julia-repl -julia> surface(1:10,1:10,randn(10,10)) +julia> x = y = range(-3, 3, length = 100) +julia> surface(x, y, (x, y) -> sinc(norm([x, y]))) ``` """ @shorthands surface