I would like to overlay these two plots. In my code, I only manage to plot them side by side.
using PyPlot
x = [μ, μ]
y = histogram(walks[end, :], bins=20, legend=nothing)
plot(plot(x), y)
I would like to overlay these two plots. In my code, I only manage to plot them side by side.
using PyPlot
x = [μ, μ]
y = histogram(walks[end, :], bins=20, legend=nothing)
plot(plot(x), y)
Just use the plotting functions with ! versions.
For an example:
x = randn(100).*10 .+ 100;
using Plots
histogram(x, bins=10)
plot!(80:120, rand(1:25,41))