diff +anim/setup_1d_plot.m @ 179:8ca4f80fcdd3 feature/grids

Merge with default.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 29 Feb 2016 15:01:58 +0100
parents 484b48e95c83
children df83c8095326
line wrap: on
line diff
--- a/+anim/setup_1d_plot.m	Mon Feb 29 14:56:51 2016 +0100
+++ b/+anim/setup_1d_plot.m	Mon Feb 29 15:01:58 2016 +0100
@@ -9,7 +9,7 @@
 %                             be passed to functions in yfun.
 %   plot_handles            - Array of plot_handles. One for each yfun.
 %   axis_handle             - Handle to the axis plotted to.
-function [update_data, plot_handles, axis_handle] = setup_1d_plot(x,y_lim,yfun)
+function [update_data, plot_handles, axis_handle] = setup_1d_plot(x,yfun)
     default_arg('yfun',{@(y)y});
 
     if isa(yfun,'function_handle')
@@ -28,10 +28,6 @@
     ylabel('y')
     xlim([x(1) x(end)]);
 
-    if ~isempty(y_lim)
-        ylim(y_lim);
-    end
-
     function update(t,varargin)
         if ishandle(figure_handle) && ishandle(axis_handle)
             for i = 1:length(yfun)