绘图中缺少Interact Slider

时间:2018-03-26 17:51:04

标签: julia gadfly

在Julia中同时使用Interact和Gadfly软件包时,应该在图中显示(来自Interact)的滑块不会显示。以下是代码示例:

using Gadfly
using Interact
set_default_plot_size(15cm, 15cm)

f(x)= e^x
x =-10:0.001:10

@manipulate for a in 1:5, b in 4:9

plot(
    layer(x=x, y=f.(x)*a, Geom.line),
    layer(x=[-10; 10], y=[10000; 10000], Geom.line),
    Coord.Cartesian(xmin=0,xmax=10)
)

end

我在版本0.6.2上运行Julia。

感谢。

0 个答案:

没有答案