I'm trying to create a two-panel interactive figure using Interact.jl and 
PyPlot.jl. Based on the example notebooks from Interact.jl, I came up with 
the following:

using Reactive, Interact
using PyPlot

x = linspace(0,2π,1000);
f, axes = plt.subplots(1,2, figsize=(4, 4))
@manipulate for α=1:0.1:3, β=1:0.1:3, γ=1:0.1:3; withfig(f) do
        y = cos(α*x + sin(β*x + γ))
        axes[1][:plot](x, y)
        axes[2][:plot](x, 1/y)
    end
end

which gives me:

PyError (PyObject_Call) <class 'ValueError'>
ValueError('Axes instance argument was not found in a figure.',)

Anyone knows how to fix this? Tnx!



Reply via email to