Opened 5 years ago
Last modified 5 years ago
#5833 new defect
No responds using Interact widget in IJulia with OMJulia
Reported by: | Oliver Lenord | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | OMJulia | Version: | v.1.15.0-dev |
Keywords: | interact, plot, IJulia | Cc: |
Description
Using the following code in IJulia
@manipulate for d = 0:0.1:2 setParameters(mod,["c=1","m=1","d="*string(d)]) simulate(mod) t, x = getSolutions(mod,["time","x"]) PyPlot.plot(t,x) end
displays a slider widget and a plot of the curve. But moving the slider does not update plot.
Removing the '@manipulate' creates as expected a char of curves.
Am I missing something or is this a bug?
Change History (4)
comment:1 by , 5 years ago
comment:3 by , 5 years ago
The update rate is very slow though the model to simulate is very small.
Is there a way to call omc in a more efficient way?
comment:4 by , 5 years ago
As far as I see in the OMJulia.jl code it runs the executable with -override, so it should be rather fast.
Note:
See TracTickets
for help on using tickets.
This seems to be a known issue with
PyPlot.plot
and@manipulate
https://github.com/JuliaGizmos/Interact.jl/issues/27
they say to do:
I will test this, but surely this is not an OMJulia issue as otherwise the multiple plots without
@manipulate
would not work.