Mercurial > repos > public > sbplib
changeset 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 | b7f40a0c6476 |
children | 1035c190e8de |
files | +anim/setup_1d_plot.m |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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)