Mercurial > repos > public > sbplib
comparison +anim/setup_surf_plot.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 | 48b6fb693025 |
children |
comparison
equal
deleted
inserted
replaced
68:f9a65e62c5e5 | 69:f87003695677 |
---|---|
21 Z = zfun(z); | 21 Z = zfun(z); |
22 % Z = reshape(zfun(z),length(x),length(y)); | 22 % Z = reshape(zfun(z),length(x),length(y)); |
23 if ishandle(plot_handle) && ishandle(axis_handle) | 23 if ishandle(plot_handle) && ishandle(axis_handle) |
24 set(plot_handle,'ZData',Z) | 24 set(plot_handle,'ZData',Z) |
25 title(axis_handle,sprintf('T=%.3f',t)); | 25 title(axis_handle,sprintf('T=%.3f',t)); |
26 drawnow | |
27 end | 26 end |
28 end | 27 end |
29 update_data = @update; | 28 update_data = @update; |
30 end | 29 end |