diff +anim/setup_1d_plot.m @ 142:484b48e95c83

Removed ylim from setup1dPlot added some comments and fixed timestepper paramters.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 29 Feb 2016 15:00:52 +0100
parents a4e1608ae980
children df83c8095326
line wrap: on
line diff
--- a/+anim/setup_1d_plot.m	Wed Feb 24 15:03:19 2016 +0100
+++ b/+anim/setup_1d_plot.m	Mon Feb 29 15:00:52 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)