Re: [julia-users] Re: Interactive Animated PyPlot in IJulia

2016-08-01 Thread Christoph Ortner
Just played with the examples in GR.jl/examples. Works really well. Thank you! On Saturday, 30 July 2016 16:25:44 UTC+1, Josef Heinen wrote: > > The first animation (slide 10) updates a 3d surface frame by frame - the > noise added could also be the result of an intensive calculation or a >

Re: [julia-users] Re: Interactive Animated PyPlot in IJulia

2016-07-30 Thread Josef Heinen
The first animation (slide 10) updates a 3d surface frame by frame - the noise added could also be the result of an intensive calculation or a real-time signal. There is a demo in the GR example section showing a 3d power spectrum calculated from the microphone audio input ... On Saturday,

Re: [julia-users] Re: Interactive Animated PyPlot in IJulia

2016-07-30 Thread Thomas Hudson
This isn't quite what I want: as with the discussion above, while the example code has a sequence of predetermined graphs to be plotted, what I'm really interested in is plotting the results of a more intensive calculation frame by frame as it runs, rather than doing the calculation of the entire

[julia-users] Re: Interactive Animated PyPlot in IJulia

2016-07-30 Thread Josef Heinen
This is probably what you are looking for. If you need special Matplotlib features, you can even mix GR and PyPlot (see slides 10 and 13 from my

[julia-users] Re: Interactive Animated PyPlot in IJulia

2016-07-30 Thread Josef Heinen
This is probably what you are looking for. If you need special Matplotlib features, you can even mix GR and PyPlot (see slides 10 and 12 this SciPy 2016 talk) On Friday, July

[julia-users] Re: Interactive Animated PyPlot in IJulia

2016-07-29 Thread Christoph Ortner
Thanks for figuring this out, Tom. I'd also be interested in a Reactive and Interact solution. On Thursday, 28 July 2016 23:42:16 UTC+1, Thomas Hudson wrote: > > I managed to work out a solution in the end, using the clear_output > command and forcing IJulia to display the plot. If anyone

[julia-users] Re: Interactive Animated PyPlot in IJulia

2016-07-28 Thread Thomas Hudson
I managed to work out a solution in the end, using the clear_output command and forcing IJulia to display the plot. If anyone knows of a fancier solution with the Reactive and Interact packages, I'd still be interested. *Inline version: *(really slow for me) using PyPlot pygui(false) x =

[julia-users] Re: Interactive Animated PyPlot in IJulia

2016-07-28 Thread Thomas Hudson
Just to say, this is not simply a case of replacing deprecated lift and Input; the push! fails for me; does anyone else have this problem? In the end, I succeeded in getting the results I wanted by tweaking the code in OP's first post; see two versions (interactive and non-interactive) below.

[julia-users] Re: Interactive Animated PyPlot in IJulia

2016-07-25 Thread Thomas Hudson
Since Julia 0.4.6, this solution no longer seems to work: the code reverts to plotting only the final frame calculated. Does anyone have any idea how to tweak the code and get identical on-the-fly plotting behaviour with PyPlot under Julia 0.4.6? Thanks for any help you can give, Tom On

[julia-users] Re: Interactive Animated PyPlot in IJulia

2014-11-27 Thread Christoph Ortner
UPDATE: I did find a discussion on this / copied below. So my new question is: Can I achieve what I want *without* modifying the pyplot source code? Thanks, Christoph OK This worked (after modifying by hand matplotlib/pyplot.py to change plt.show(block=False) to plt.ion(), possibly

[julia-users] Re: Interactive Animated PyPlot in IJulia

2014-11-27 Thread Cristóvão Duarte Sousa
Hi, I was able to do it using Interact, Reactive and Winston in IJulia. For example, in one input cell run using Interact, Reactive, Winston p = Input(0.0:0.0) function f(x) plot(sin(5*x), sin(2π*x)) xlim(-1, 1) ylim(-1, 1) end lift(f, p) and then, in another cell, run your

[julia-users] Re: Interactive Animated PyPlot in IJulia

2014-11-27 Thread Steven G. Johnson
using PyPlot, Interact f = figure() @manipulate for p in 1:10 withfig(f) do ...plot commands with parameter p... end end There are some other plotting examples with @manipulate in the Interact docs.

[julia-users] Re: Interactive Animated PyPlot in IJulia

2014-11-27 Thread Christoph Ortner
Thank you both for your replies. Since the purpose is to plot the current state of a numerical simulation every few iterations (of some nonlinear iteration or time-stepping scheme) I don't think either these are suitable though. Re the @manipulate approach: I just get a slider this way?

[julia-users] Re: Interactive Animated PyPlot in IJulia

2014-11-27 Thread Christoph Ortner
A naive attempt at this failed I just replaced Winston.plot with PyPlot.plot in Cristovao's example; see below. The result is that Pyplot plots in the [2] output instead of the [1] output. Why is it ok with Winston but not with PyPlot? I am obsessing about PyPlot because I need the 3D plotting