--- MITgcm_contrib/enderton/Diagnostics/DiagPlotTitles.m 2005/01/31 15:43:27 1.1 +++ MITgcm_contrib/enderton/Diagnostics/DiagPlotTitles.m 2005/02/02 15:38:21 1.2 @@ -27,9 +27,9 @@ info = page{inrow}{incol}; % Experiment information. - exptxt = ''; + trltxt = ''; if SubplotExp - exptxt = [info{iexp},'; ']; + trltxt = [info{itrl},'; ']; end % Field and unit information. @@ -85,9 +85,9 @@ if SubplotMinMax clear mn mx; if ismember(cmp,{'OvC','OvE','OvF'}) - for inexp = 1:nexp - mn(inexp) = min(data{inrow}{inexp}(:)); - mx(inexp) = max(data{inrow}{inexp}(:)); + for intrl = 1:ntrl + mn(intrl) = min(data{inrow}{intrl}(:)); + mx(intrl) = max(data{inrow}{intrl}(:)); end mn = num2str(min(mn(:))); mx = num2str(max(mx(:))); @@ -99,7 +99,7 @@ end % Throw on the subplot title. - titlestr = [exptxt,fldtxt,timtxt,contxt,minmaxtxt]; + titlestr = [trltxt,fldtxt,timtxt,contxt,minmaxtxt]; titlestr = AddSlashesBeforeUnderscores(titlestr(1:end-2)); title(titlestr,'fontsize',fs_sptitle); end