Add shorthand for pixel series

This commit is contained in:
Lakshya Khatri 2020-07-28 21:28:00 +05:30
parent 5d3ae1de31
commit 55afb20a09
2 changed files with 15 additions and 1 deletions

View File

@ -178,7 +178,7 @@ end
x := x
y := y
markersize := 1
markerstrokewidth := 0
markerstrokewidth --> 0
seriestype := :scatter
()
end

View File

@ -383,6 +383,20 @@ julia> curves([1,2,3,4],[1,1,2,4])
"Plot a pie diagram"
@shorthands pie
"""
pixel(x,y)
pixel!(x,y)
Make a pixel plot of y vs x.
# Examples
```julia-repl
julia> pixel([1,2,3],[4,5,6],markercolor=[:red,:green,:blue])
julia> pixel([(1,4),(2,5),(3,6)])
```
"""
@shorthands pixel
"Plot with seriestype :path3d"
plot3d(args...; kw...) = plot(args...; kw..., seriestype = :path3d)
plot3d!(args...; kw...) = plot!(args...; kw..., seriestype = :path3d)