首页 > 解决方案 > Julia 中 @animate 和 @layout 的顺序

问题描述

我想问一下以下错误的机制。编码

lay = @layout [a{0.4h}; grid(2,2)]
@animate for...
plot(..., layout = lay)
end

在 Jupyter 中生成只有一帧的动画(其余帧为空白)。Jupyter 中没有错误消息。

编码

@animate for...
lay = @layout [a{0.4h}; grid(2,2)]
plot(..., layout = lay)
end

工作正常。为什么?这不是低效吗?

标签: layoutjuliajquery-animate

解决方案


推荐阅读