diff +anim/setup_time_quantity_plot.m @ 70:243c558dc3ae

Made end of animated quantity plot nicer.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 23 Nov 2015 14:07:03 +0100
parents f87003695677
children 942cb3c53a47
line wrap: on
line diff
--- a/+anim/setup_time_quantity_plot.m	Mon Nov 23 13:54:01 2015 +0100
+++ b/+anim/setup_time_quantity_plot.m	Mon Nov 23 14:07:03 2015 +0100
@@ -25,6 +25,10 @@
                 plot_handles(j).XData = t;
                 plot_handles(j).YData = quantities{j};
             end
+
+            if t(end) > t(1)
+                xlim([t(1) 1.1*t(end)]);
+            end
         end
     end
     update_data = @update;