Mercurial > repos > public > sbplib
comparison +anim/setup_2d_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 |
---|---|
19 Z = zfun(z); | 19 Z = zfun(z); |
20 % Z = reshape(zfun(z),length(x),length(y)); | 20 % Z = reshape(zfun(z),length(x),length(y)); |
21 if ishandle(plot_handle) && ishandle(axis_handle) | 21 if ishandle(plot_handle) && ishandle(axis_handle) |
22 set(plot_handle,'CData',Z) | 22 set(plot_handle,'CData',Z) |
23 title(axis_handle,sprintf('T=%.3f',t)); | 23 title(axis_handle,sprintf('T=%.3f',t)); |
24 drawnow | |
25 end | 24 end |
26 end | 25 end |
27 update_data = @update; | 26 update_data = @update; |
28 end | 27 end |
29 | 28 |