Mercurial > repos > public > sbplib
diff +anim/setup_1d_plot.m @ 113:a4e1608ae980
1d plot: Made it possible to have automatix axes.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 11 Dec 2015 09:31:46 +0100 |
parents | f87003695677 |
children | 484b48e95c83 |
line wrap: on
line diff
--- a/+anim/setup_1d_plot.m Wed Dec 09 15:49:25 2015 +0100 +++ b/+anim/setup_1d_plot.m Fri Dec 11 09:31:46 2015 +0100 @@ -27,7 +27,10 @@ xlabel('x') ylabel('y') xlim([x(1) x(end)]); - ylim(y_lim); + + if ~isempty(y_lim) + ylim(y_lim); + end function update(t,varargin) if ishandle(figure_handle) && ishandle(axis_handle)