If I want to plot subsequently during a loop, this works when using gnuplot, but not with octplot. With octplot, I only see the first and last plot in this example:
> x=-10:10;
> for p=1:5;
> plot(x.^p);
> sleep(1);
> end
It would be convenient to be able to plot in a video style for illustration. Can I somehow flush the plot to the output for every step?
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
If I want to plot subsequently during a loop, this works when using gnuplot, but not with octplot. With octplot, I only see the first and last plot in this example:
> x=-10:10;
> for p=1:5;
> plot(x.^p);
> sleep(1);
> end
It would be convenient to be able to plot in a video style for illustration. Can I somehow flush the plot to the output for every step?
Regards
use
octplot_redraw();
just before sleep.
Shai
You can also try the pause(1); instead of sleep(1);