Mercurial > repos > public > sbplib
diff +noname/animate.m @ 69:f87003695677
Moved drawno out of plot update functions for huge performance boost.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 23 Nov 2015 13:54:01 +0100 |
parents | 9a647dcccbdd |
children | 1edee9e1ea41 |
line wrap: on
line diff
--- a/+noname/animate.m Mon Nov 23 13:51:31 2015 +0100 +++ b/+noname/animate.m Mon Nov 23 13:54:01 2015 +0100 @@ -46,6 +46,7 @@ ts.evolve(next_t); sol = discretization.getTimeSnapshot(ts); update(sol); + drawnow % waitforbuttonpress if makemovies save_frame(); @@ -63,7 +64,7 @@ fprintf('Using time step k = %.6f\n',ts.k) fprintf('System size: %d\n',size(discretization)) - waitforbuttonpress + % waitforbuttonpress anim.animate(@G,0,Tend,time_modifier) str = util.replace_string(str,'');