Added weights example to ? histogram

Helps to clarify the use of weights (which differs from StatsBase functions)
This commit is contained in:
jo-fleck 2021-03-15 14:09:24 +01:00
parent 060162c356
commit ae99ed2588

View File

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