How do I overlay two plots in Julia

Viewed 1088

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)

enter image description here

1 Answers

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

enter image description here

Related