From 13353f1637e829182167722d48784477a83c5d37 Mon Sep 17 00:00:00 2001 From: Adrian Dawid Date: Thu, 13 Aug 2020 16:54:05 +0200 Subject: [PATCH] Add shorthand --- src/recipes.jl | 2 -- src/shorthands.jl | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/recipes.jl b/src/recipes.jl index 96bad789..595c5269 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -926,8 +926,6 @@ end end -# note: don't add dependencies because this really isn't a drop-in replacement - # --------------------------------------------------------------------------- # scatter 3d diff --git a/src/shorthands.jl b/src/shorthands.jl index 63bec003..cbaf2971 100644 --- a/src/shorthands.jl +++ b/src/shorthands.jl @@ -318,6 +318,27 @@ julia> scatter3d([0,1,2,3],[0,1,4,9],[0,1,8,27]) """ @shorthands scatter3d +""" + mesh3d(x,y,z) + mesh3d(x,y,z;i,j,k) + +Plot a 3d mesh. On Plotly the triangles can be specified using the i,j,k arguments. + +# Example +```Julia +x=[0, 1, 2, 0] +y=[0, 0, 1, 2] +z=[2, 4, 2, 3] + +i=[0, 0, 0, 1] +j=[1, 2, 3, 2] +k=[2, 3, 1, 3] + +mesh3d(x,y,z;i,j,k) +``` +""" +@shorthands mesh3d + """ boxplot(x, y) boxplot!(x, y)