comparison scripts/plot/axis.m @ 13174:bd2cd4fd3edf stable

maint: use specific endif, endfor tokens instead of simple end * gmres.m, getappdata.m, setappdata.m, axis.m: Use specific endif, endfor tokens instead of simple end.
author John W. Eaton <jwe@octave.org>
date Tue, 20 Sep 2011 15:33:10 -0400
parents 0c3b1a359998
children 8aaaef4a69aa
comparison
equal deleted inserted replaced
13172:25467719730b 13174:bd2cd4fd3edf
321 scale = get (ca, strcat (ax, "scale")); 321 scale = get (ca, strcat (ax, "scale"));
322 if (strcmp (scale, "log")) 322 if (strcmp (scale, "log"))
323 if (iscell (data)) 323 if (iscell (data))
324 for i = 1:length(data) 324 for i = 1:length(data)
325 data{i}(data{i}<=0) = NaN; 325 data{i}(data{i}<=0) = NaN;
326 end 326 endfor
327 else 327 else
328 data(data<=0) = NaN; 328 data(data<=0) = NaN;
329 end 329 endif
330 end 330 endif
331 if (iscell (data)) 331 if (iscell (data))
332 data = data (find (! cellfun (@isempty, data))); 332 data = data (find (! cellfun (@isempty, data)));
333 if (! isempty (data)) 333 if (! isempty (data))
334 lims_min = min (cellfun (@min, cellfun (@min, data, 'uniformoutput', false)(:))); 334 lims_min = min (cellfun (@min, cellfun (@min, data, 'uniformoutput', false)(:)));
335 lims_max = max (cellfun (@max, cellfun (@max, data, 'uniformoutput', false)(:))); 335 lims_max = max (cellfun (@max, cellfun (@max, data, 'uniformoutput', false)(:)));