plot - 如何在 Julia 中叠加两个图

标签 plot statistics julia

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

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

plot(plot(x), y)
enter image description here

最佳答案

只需将绘图函数与 ! 一起使用即可版本。
例如:

x = randn(100).*10 .+ 100;
using Plots
histogram(x, bins=10)
plot!(80:120, rand(1:25,41))
enter image description here

关于plot - 如何在 Julia 中叠加两个图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68118946/

相关文章:

julia - 将绘图存储在数组中

matlab - 为什么MatLab会中断某些变量输入?

python - python matplotlib 和子图大小的问题

python - 在seaborn中绘制两列dataFrame

c - 这里有人使用 make-cdf & stats.pl 程序吗?

julia - 尝试在 Julia 中添加 Plots 包时,为什么会出现 "Unsatisfiable requirements detected for package HTTP"错误?

iterator - 使用 `@transform` 在 Julia 中转换 DataFrame

r - 带有 R 和 Lattice 的 XYZ 图中高程数据的颜色渐变

statistics - 为什么 Julia Distribution 包不能使用整数?

Python:如何找到二维点分布的第 n 个分位数