| 1 | enderton | 1.1 | % DiagPlotMakePlot is called by DiagPlot and cannot be used seperately. | 
| 2 |  |  |  | 
| 3 |  |  |  | 
| 4 |  |  | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | 
| 5 |  |  | %                                 Make plot                               % | 
| 6 |  |  | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | 
| 7 |  |  | if isequal(cmp,'Dif') | 
| 8 |  |  | plotdata = data{inrow}{1} - data{inrow}{2}; | 
| 9 |  |  | else | 
| 10 |  |  | plotdata = data{inrow}{incol}; | 
| 11 |  |  | end | 
| 12 |  |  |  | 
| 13 |  |  |  | 
| 14 |  |  | % Make gridded plot.  This should be fixed up to allow for non-constant | 
| 15 |  |  | % height intervals, imagesc makes everything equally spaced in the vertical | 
| 16 |  |  | % (and in the horizontal for that matter). | 
| 17 |  |  | if isequal(pst,'Grd') | 
| 18 |  |  | if isCS | 
| 19 | enderton | 1.4 | merccube_mod(xax{inrow}{incol},yax{inrow}{incol},plotdata); | 
| 20 | enderton | 1.1 | else | 
| 21 |  |  | imagesc(xax{inrow}{incol},yax{inrow}{incol},plotdata); | 
| 22 |  |  | end | 
| 23 |  |  |  | 
| 24 |  |  | % Make interpolated plot. | 
| 25 |  |  | elseif isequal(pst,'Int') | 
| 26 |  |  | if isCS | 
| 27 | enderton | 1.4 | merccube_mod(xax{inrow}{incol},yax{inrow}{incol},plotdata); | 
| 28 | enderton | 1.1 | shading interp; | 
| 29 |  |  | else | 
| 30 |  |  | pcolor(xax{inrow}{incol},yax{inrow}{incol},plotdata); | 
| 31 |  |  | shading interp; | 
| 32 |  |  | end | 
| 33 |  |  |  | 
| 34 |  |  | % Make contour (non-filled) plot.  Let MATLAB determine the contour | 
| 35 |  |  | % intervals on a differencing plot. | 
| 36 |  |  | elseif isequal(pst,'Con') | 
| 37 | enderton | 1.3 | try   [cs,h] = contour(xax{inrow}{incol},yax{inrow}{incol},plotdata,contint); | 
| 38 |  |  | catch [cs,h] = contour(xax{inrow}{incol},yax{inrow}{incol},plotdata); end | 
| 39 |  |  | set(h,'linewidth',linewidth); | 
| 40 | enderton | 1.1 | if UseConLabel | 
| 41 |  |  | clabel(cs,h,'fontsize',fs_clabel,'rotation',0); | 
| 42 |  |  | end | 
| 43 |  |  |  | 
| 44 |  |  | % Make contour (filled) plot.  Let MATLAB determine the contour | 
| 45 |  |  | % intervals on a differencing plot. | 
| 46 |  |  | elseif isequal(pst,'Cnf') | 
| 47 | enderton | 1.3 | try   [cs,h] = contourf(xax{inrow}{incol},yax{inrow}{incol},plotdata,contint); | 
| 48 |  |  | catch [cs,h] = contourf(xax{inrow}{incol},yax{inrow}{incol},plotdata); end | 
| 49 | enderton | 1.1 | if UseCnfLabel | 
| 50 |  |  | clabel(cs,h,'fontsize',fs_clabel,'rotation',0); | 
| 51 |  |  | end | 
| 52 |  |  |  | 
| 53 |  |  | % Make line plot.  If this is an overlaying comparison, cycle through the | 
| 54 |  |  | % appropriate data of which to overlay. | 
| 55 |  |  | elseif isequal(pst,'Lin') | 
| 56 |  |  | if ismember(cmp,{'OvC','OvE','OvF'}) | 
| 57 | enderton | 1.2 | for intrl = 1:ntrl | 
| 58 |  |  | plot(xax{inrow}{intrl},data{inrow}{intrl},linecolors{intrl},'linewidth',linewidth); | 
| 59 | enderton | 1.1 | end | 
| 60 |  |  | else | 
| 61 |  |  | plot(xax{inrow}{incol},plotdata,linecolors{1},'linewidth',linewidth); | 
| 62 |  |  | end | 
| 63 |  |  |  | 
| 64 |  |  | % Unknown plot style encountered. | 
| 65 |  |  | else | 
| 66 |  |  | error(['Oh dear!  Undefined PlotStyle:  ',pst]); | 
| 67 |  |  | end |