我正在处理大量的观察并真正了解它我想使用 Plots.jl 制作直方图 我的问题是我如何在一个图中制作多个直方图,因为这真的很方便。我已经尝试了多种方法,但我对 julia 中的不同绘图源(plots.jl、pyplot、gadfly...)感到有些困惑。
我不知道发布一些代码对我是否有帮助,因为这是一个更普遍的问题。但如果需要,我很乐意发布它。
有一个例子就是这样做的:
using Plots
pyplot()
n = 100
x1, x2 = rand(n), 3rand(n)
# see issue #186... this is the standard histogram call
# our goal is to use the same edges for both series
histogram(Any[x1, x2], line=(3,0.2,:green), fillcolor=[:red :black], fillalpha=0.2)
Run Code Online (Sandbox Code Playgroud)
我在Plots.jl 存储库中寻找“直方图” ,找到了这个相关问题并按照示例的 链接进行操作。