From 55afb20a092e6ada7f35b6dea4a876c2d32a66a6 Mon Sep 17 00:00:00 2001 From: Lakshya Khatri Date: Tue, 28 Jul 2020 21:28:00 +0530 Subject: [PATCH] Add shorthand for pixel series --- src/recipes.jl | 2 +- src/shorthands.jl | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/recipes.jl b/src/recipes.jl index f9c1b744..3fc4d0d8 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -178,7 +178,7 @@ end x := x y := y markersize := 1 - markerstrokewidth := 0 + markerstrokewidth --> 0 seriestype := :scatter () end diff --git a/src/shorthands.jl b/src/shorthands.jl index 63bec003..b8face75 100644 --- a/src/shorthands.jl +++ b/src/shorthands.jl @@ -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)