如何在 Julia 中叠加两个图

Str*_*ent 5 statistics plot julia

我想叠加这两个图。在我的代码中,我只能将它们并排绘制。

using PyPlot
x = [?, ?]
y = histogram(walks[end, :], bins=20, legend=nothing)

plot(plot(x), y)
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

Prz*_*fel 5

只需将绘图功能与!版本一起使用即可。

例如:

x = randn(100).*10 .+ 100;
using Plots
histogram(x, bins=10)
plot!(80:120, rand(1:25,41))
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明