Something like this?
histogram(y1, ylims = (0,50), ylabel = "frequency", xlabel = "probability"; bins, xguidefonthalign = :right, yguidefontvalign = :top)
There are more examples in the documentation here: https://docs.juliaplots.org/latest/generated/gr/#gr-ref54