Add shorthand

This commit is contained in:
Adrian Dawid 2020-08-13 16:54:05 +02:00
parent acfda5ea69
commit 13353f1637
2 changed files with 21 additions and 2 deletions

View File

@ -926,8 +926,6 @@ end
end
# note: don't add dependencies because this really isn't a drop-in replacement
# ---------------------------------------------------------------------------
# scatter 3d

View File

@ -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)