Added weights example to ? histogram
Helps to clarify the use of weights (which differs from StatsBase functions)
This commit is contained in:
parent
060162c356
commit
ae99ed2588
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user