From ae99ed25886908dd6d06ce363fad1201d354862e Mon Sep 17 00:00:00 2001 From: jo-fleck Date: Mon, 15 Mar 2021 14:09:24 +0100 Subject: [PATCH] Added weights example to ? histogram Helps to clarify the use of weights (which differs from StatsBase functions) --- src/shorthands.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shorthands.jl b/src/shorthands.jl index e1afb1a4..dfcc2302 100644 --- a/src/shorthands.jl +++ b/src/shorthands.jl @@ -57,6 +57,7 @@ Plot a histogram. # Example ```julia-repl julia> histogram([1,2,1,1,4,3,8],bins=0:8) +julia> histogram([1,2,1,1,4,3,8],bins=0:8,weights=weights([4,7,3,9,12,2,6])) ``` """ @shorthands histogram