On Fri, Jan 31, 2014 at 2:28 PM, Comer Duncan <[email protected]> wrote:
> Hi,
>
> I am wanting to use Winston to show a movie of plots of a running
> computation in julia, but alas it does not seem to work. Here is what I have
> tried:
>
> using Winston
> x = linspace(0.,6*pi,100)
>
> for i = 1:10
>      x = x*float(i);
>      plot(sin(x))
> endt v
>

Try `display(plot(sin(x)))`.

-Mike

> When run no plots appear.  When I just plot(sin(x)) it of course plots the
> last computed values of sin(x) but none of the previous ones.
>
> The reason I am doing this is to set up a simple movie plot where I want
> plot to render the current values of a dynamics array (actually the
> probability density solution of the time-dependent Schrodinger equation. The
> above is just a simple attempt to get something going.
>
> So, how come the plots can not be rendered as the do loop is traversed?
> What am I missing?
>
> Thanks much for your help.
>
> Comer

Reply via email to