Mercurial > repos > public > sbplib
changeset 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 | 1edee9e1ea41 |
files | +anim/setup_time_quantity_plot.m |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
diff -r f87003695677 -r 243c558dc3ae +anim/setup_time_quantity_plot.m --- 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;