From ddaa69bce2ffbc704fe9c35c6c6380793e7cf32b Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Thu, 4 Jul 2019 12:48:47 +0200 Subject: [PATCH] move areaplot doc from shorthands to recipes --- src/recipes.jl | 9 +++++++++ src/shorthands.jl | 12 ------------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/recipes.jl b/src/recipes.jl index 0f833d51..0bab86b0 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -1184,7 +1184,16 @@ end end end +""" + areaplot([x,] y) + areaplot!([x,] y) +Draw a stacked area plot of the matrix y. +# Examples +```julia-repl +julia> areaplot(1:3, [1 2 3; 7 8 9; 4 5 6], seriescolor = [:red :green :blue], fillalpha = [0.2 0.3 0.4]) +``` +""" @userplot AreaPlot @recipe function f(a::AreaPlot) diff --git a/src/shorthands.jl b/src/shorthands.jl index 79e63919..776626a9 100644 --- a/src/shorthands.jl +++ b/src/shorthands.jl @@ -379,18 +379,6 @@ julia> curves([1,2,3,4],[1,1,2,4]) """ @shorthands curves -""" - areaplot([x,] y) - areaplot!([x,] y) - -Draw a stacked area plot of the matrix y. -# Examples -```julia-repl -julia> areaplot(1:3, [1 2 3; 7 8 9; 4 5 6], seriescolor = [:red :green :blue], fillalpha = [0.2 0.3 0.4]) -``` -""" -@shorthands areaplot - "Plot a pie diagram" pie(args...; kw...) = plot(args...; kw..., seriestype = :pie, aspect_ratio = :equal, grid=false, xticks=nothing, yticks=nothing) pie!(args...; kw...) = plot!(args...; kw..., seriestype = :pie, aspect_ratio = :equal, grid=false, xticks=nothing, yticks=nothing)