我想叠加这两个图。在我的代码中,我只能将它们并排绘制。
using PyPlot
x = [μ, μ]
y = histogram(walks[end, :], bins=20, legend=nothing)
plot(plot(x), y)
最佳答案
只需将绘图函数与 !
一起使用即可版本。
例如:
x = randn(100).*10 .+ 100;
using Plots
histogram(x, bins=10)
plot!(80:120, rand(1:25,41))
关于plot - 如何在 Julia 中叠加两个图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68118946/