【问题标题】:How do I overlay two plots in Julia如何在 Julia 中叠加两个图
【发布时间】:2021-09-08 03:17:12
【问题描述】:

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

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

plot(plot(x), y)

【问题讨论】:

  • 为什么这个标签是python?

标签: plot statistics julia


【解决方案1】:

只需使用 ! 版本的绘图功能。

举个例子:

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

【讨论】:

    猜你喜欢
    • 2021-08-10
    • 2022-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-22
    • 1970-01-01
    相关资源
    最近更新 更多