Mercurial > repos > public > sbplib
comparison +anim/setup_time_quantity_plot.m @ 832:5573913a0949 feature/burgers1d
Merged with default, and updated +scheme/Burgers1D accordingly
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 11 Sep 2018 15:58:35 +0200 |
parents | 2ffa82fb5172 |
children |
comparison
equal
deleted
inserted
replaced
831:d0934d1143b7 | 832:5573913a0949 |
---|---|
14 | 14 |
15 function update(t_now,varargin) | 15 function update(t_now,varargin) |
16 if ishandle(axis_handle) | 16 if ishandle(axis_handle) |
17 % t = [t t_now]; | 17 % t = [t t_now]; |
18 for j = 1:length(yfun) | 18 for j = 1:length(yfun) |
19 addpoints(plot_handles(j),t_now,yfun{j}(varargin{:})); | 19 addpoints(plot_handles(j),t_now,full(yfun{j}(varargin{:}))); |
20 end | 20 end |
21 | 21 |
22 [t,~] = getpoints(plot_handles(1)); | 22 [t,~] = getpoints(plot_handles(1)); |
23 if t(1) < t(end) | 23 if t(1) < t(end) |
24 xlim(axis_handle, [t(1) t(end)]); | 24 xlim(axis_handle, [t(1) t(end)]); |