matplotlib - Matlab 在 Julia 中的 "hold on"

标签 matplotlib plot julia

我只是在寻找等效于 Matlab 的 hold on Julia 命令。

我有 x 15x1 和 y 的数组阵列 15x6,因此这将一次生成 6 个图。我想做的是绘制每个 y[:,1],y[:,2],...,y[:,6]一次一个(例如在每个之间暂停 5 秒)以更好地说明数值方法的收敛性,而不是一次将所有 6 次迭代都放在那里。

我正在使用 pyplot后端带有 Plots.jl 包。

最佳答案

调用 plot!而不是 plot .例如

using Plots
pyplot()
plot!(rand(10))
plot!(rand(10))

关于matplotlib - Matlab 在 Julia 中的 "hold on",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43724883/

相关文章:

python - 如何使用plot_trisurf

Python 多处理 pylab 傅里叶

R:将 "vline"和 "hline"语句组合在一起(ggplot2)

复数矩阵的 R 图

python - plt.plot [ :, 0] 和 [ :, 1] 的含义

签名中带有数组类型的 ccall 从 Julia 调用 C 中的结构

python - 如何在 Bokeh 中绘制水平条形图(Python)

python - 使用 matplotlib tight_layout() 时出现 ValueError

html - PlotlyJS.jl "savehtml"未定义

arrays - 使用 Julia 中的 Images 导出图像