diff +anim/setup_time_quantity_plot.m @ 771:2ffa82fb5172 feature/grids

Make setup_time_quantity_plot() accept sparse vectors
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 17 Jul 2018 16:39:17 -0700
parents a38c243991d0
children
line wrap: on
line diff
--- a/+anim/setup_time_quantity_plot.m	Wed Jun 27 11:10:52 2018 +0200
+++ b/+anim/setup_time_quantity_plot.m	Tue Jul 17 16:39:17 2018 -0700
@@ -16,7 +16,7 @@
         if ishandle(axis_handle)
             % t = [t t_now];
             for j = 1:length(yfun)
-                addpoints(plot_handles(j),t_now,yfun{j}(varargin{:}));
+                addpoints(plot_handles(j),t_now,full(yfun{j}(varargin{:})));
             end
 
             [t,~] = getpoints(plot_handles(1));