Plotting Probability Distribution of Data

Sorry, seems I had Flux loaded where its a deprecated function.
Here is a full example showing all libraries and using countmap from StatsBase as an alternative:

julia> using StatsBase

julia> fs = countmap(rand(0:1000, 10000));

julia> using Plots

julia> bar(collect(keys(fs)), values(fs) ./ sum(values(fs)))
1 Like